From cfa2ba030becec1f0e12994f120b65ca5e99badb Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 4 May 2015 21:15:46 +0200 Subject: Add test case Tests #518. --- tests/pos/i518.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/pos/i518.scala (limited to 'tests/pos/i518.scala') diff --git a/tests/pos/i518.scala b/tests/pos/i518.scala new file mode 100644 index 000000000..390437dae --- /dev/null +++ b/tests/pos/i518.scala @@ -0,0 +1,6 @@ +class Meter(val underlying: Int) extends AnyVal + +class Test { + val x: Int = new Meter(3).hashCode() + // After phase VCInline the rhs should be expanded to Meter.hashCode$extension(3) +} -- cgit v1.2.3