From ac05bd5950ac9af26533930ef1d88724aca95f99 Mon Sep 17 00:00:00 2001 From: Friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:57:15 -0700 Subject: [PATCH] Add test case neg/i19248 --- tests/neg/i19248/Foo.scala | 7 +++++++ tests/neg/i19248/Main.scala | 3 +++ tests/neg/i19248/Scope.scala | 4 ++++ tests/neg/i19248/empty.scala | 1 + 4 files changed, 15 insertions(+) create mode 100644 tests/neg/i19248/Foo.scala create mode 100644 tests/neg/i19248/Main.scala create mode 100644 tests/neg/i19248/Scope.scala create mode 100644 tests/neg/i19248/empty.scala diff --git a/tests/neg/i19248/Foo.scala b/tests/neg/i19248/Foo.scala new file mode 100644 index 000000000000..f24651234eb9 --- /dev/null +++ b/tests/neg/i19248/Foo.scala @@ -0,0 +1,7 @@ +trait Foo { // error + class Bar + + type T = Foo.this.Bar + + inline def f: Int = ??? +} diff --git a/tests/neg/i19248/Main.scala b/tests/neg/i19248/Main.scala new file mode 100644 index 000000000000..bf4e3a48b279 --- /dev/null +++ b/tests/neg/i19248/Main.scala @@ -0,0 +1,3 @@ +@main +def Main(args: String*): Unit = + () diff --git a/tests/neg/i19248/Scope.scala b/tests/neg/i19248/Scope.scala new file mode 100644 index 000000000000..a3135d93084f --- /dev/null +++ b/tests/neg/i19248/Scope.scala @@ -0,0 +1,4 @@ +object Scope { +} +object Foo { +} diff --git a/tests/neg/i19248/empty.scala b/tests/neg/i19248/empty.scala new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/tests/neg/i19248/empty.scala @@ -0,0 +1 @@ +