From 7bf837c79315e5db7e049f3ffeb6c6842d18880c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 16 Mar 2014 21:39:18 +0100 Subject: Fix of t0774: empty file Was previously wrapped in a package but the resulting tree had no position, which caused a Typer assertion. If now represented as EmptyTree. --- tests/pos/t0612/C.scala | 6 ++++++ tests/pos/t0612/Ob.scala | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 tests/pos/t0612/C.scala create mode 100644 tests/pos/t0612/Ob.scala (limited to 'tests/pos/t0612') diff --git a/tests/pos/t0612/C.scala b/tests/pos/t0612/C.scala new file mode 100644 index 000000000..1f260a5b0 --- /dev/null +++ b/tests/pos/t0612/C.scala @@ -0,0 +1,6 @@ +package test +package app + +class C { + Ob.f +} diff --git a/tests/pos/t0612/Ob.scala b/tests/pos/t0612/Ob.scala new file mode 100644 index 000000000..d12e64963 --- /dev/null +++ b/tests/pos/t0612/Ob.scala @@ -0,0 +1,5 @@ +package test + +object Ob { + protected[test] def f: Unit = {} +} -- cgit v1.2.3