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 1ecdddc commit 30ed58aCopy full SHA for 30ed58a
tests/pos/i12508.scala
@@ -5,4 +5,13 @@ class Test {
5
def x: X = ???
6
def foo: Unit = this.x.toString
7
}
8
+}
9
+class Test2 {
10
+ inline def test(fun: => Any): Any = fun
11
+ test {
12
+ case class Pair[X, Y](
13
+ x: X,
14
+ y: Y,
15
+ )
16
+ }
17
tests/pos/i12508b.scala
@@ -0,0 +1,13 @@
1
+def fun(a: Any, b: Any = 2): Any = ???
2
+def test =
3
+ fun(
4
+ b = println(1),
+ a = {
+ sealed class Foo[X]:
+ def x: X = ???
+ def foo: Unit = this.x.toString
+ class Bar extends Foo[String]
+ class Baz[Y] extends Foo[Y]
+ if ??? then Bar() else Baz[Int]
0 commit comments