We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a553986 commit dfabe4fCopy full SHA for dfabe4f
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))
tests/warn/i23033.scala
@@ -11,3 +11,5 @@ object Useful:
given [T](using @unused ec: ExecutionContext): AnyRef with {}
object Syntax:
given [T] => (@unused ec: ExecutionContext) => AnyRef
15
+class i23122(@unused param: AnyRef)
0 commit comments