Skip to content

Commit 8b15eb9

Browse files
test: add in regression test for #7653 (#17474)
Closes #7653
2 parents 35cc2ba + 77a44df commit 8b15eb9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/pos/i7653.scala

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// https://github.com/lampepfl/dotty/issues/7653
2+
3+
object options2 {
4+
type Option[T] = {
5+
def isEmpty: Boolean
6+
}
7+
type None[T] = Option[T]
8+
val none: () => Option[Nothing] = () =>
9+
new {
10+
def isEmpty = true
11+
}
12+
val mkNone0: [T] => () => Option[Nothing] = [T] =>
13+
() =>
14+
new {
15+
def isEmpty = true
16+
}
17+
val mkNone: [T] => () => Option[T] = [T] =>
18+
() =>
19+
new {
20+
def isEmpty = true
21+
}
22+
}

0 commit comments

Comments
 (0)