Skip to content

Commit 5f3c3e8

Browse files
committed
Add run test for empty implicit function types
1 parent 23afa6f commit 5f3c3e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/run/i2642.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Tests nullary implicit function types
2+
object Test extends App {
3+
class I
4+
type X = implicit () => Int
5+
def ff: X = 2
6+
assert(ff == 2)
7+
}

0 commit comments

Comments
 (0)