We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c4e597 commit 77a44dfCopy full SHA for 77a44df
tests/pos/i7653.scala
@@ -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
15
16
17
+ val mkNone: [T] => () => Option[T] = [T] =>
18
19
20
21
22
+}
0 commit comments