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 aa9db1f commit d4c46d1Copy full SHA for d4c46d1
tests/neg/i19413.scala
@@ -0,0 +1,14 @@
1
+
2
+import hello.bla.* // error
3
4
+//transparent inline def hello: kla.type = kla // ok
5
+def hello: kla.type = kla
6
7
+object kla:
8
+ def ra = ???
9
+ object bla { val ra1 = 31 }
10
11
+//import kla.bla.ra1
12
13
+@main def test = println:
14
+ ra1
tests/pos/i20070.scala
@@ -0,0 +1,7 @@
+trait F[A]
+given F[Int] = new F {}
+def f[A: F] = { (x: A) => x }
+@main def test =
+ println(f[Int](1))
0 commit comments