diff options
Diffstat (limited to 'tests/disabled/not-representable/pos/t5544')
-rw-r--r-- | tests/disabled/not-representable/pos/t5544/Api_1.scala | 9 | ||||
-rw-r--r-- | tests/disabled/not-representable/pos/t5544/Test_2.scala | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/disabled/not-representable/pos/t5544/Api_1.scala b/tests/disabled/not-representable/pos/t5544/Api_1.scala new file mode 100644 index 000000000..30994fa07 --- /dev/null +++ b/tests/disabled/not-representable/pos/t5544/Api_1.scala @@ -0,0 +1,9 @@ +// Uses structural types; therefore not expressible in dotty +import scala.annotation.StaticAnnotation + +class ann(val bar: Any) extends StaticAnnotation + +object Api { + @ann({def foo = "foo!!"}) + def foo = println("foo") +} diff --git a/tests/disabled/not-representable/pos/t5544/Test_2.scala b/tests/disabled/not-representable/pos/t5544/Test_2.scala new file mode 100644 index 000000000..ea9232221 --- /dev/null +++ b/tests/disabled/not-representable/pos/t5544/Test_2.scala @@ -0,0 +1,3 @@ +object Test extends dotty.runtime.LegacyApp { + Api.foo +} |