From e65cf90e866180a8880720a7ea0e535da163c517 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 31 Aug 2021 15:10:28 +0200 Subject: [PATCH] Add regression test Closes #9363 --- tests/pos/i9363.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/pos/i9363.scala diff --git a/tests/pos/i9363.scala b/tests/pos/i9363.scala new file mode 100644 index 000000000000..183779349944 --- /dev/null +++ b/tests/pos/i9363.scala @@ -0,0 +1,8 @@ +class Foo: + protected inline def fooProtected: Int = 12 + +object Foo extends Foo: + inline def foo: Int = fooProtected + +object Bar: + def bar: Int = Foo.foo