aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i518.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-04 21:15:46 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-04 21:15:46 +0200
commitcfa2ba030becec1f0e12994f120b65ca5e99badb (patch)
treeb4183a5b70119352205081a23c10a009b0307d82 /tests/pos/i518.scala
parent0c637364a92536a968e4f3c88fce805b6eb95aec (diff)
downloaddotty-cfa2ba030becec1f0e12994f120b65ca5e99badb.tar.gz
dotty-cfa2ba030becec1f0e12994f120b65ca5e99badb.tar.bz2
dotty-cfa2ba030becec1f0e12994f120b65ca5e99badb.zip
Add test case
Tests #518.
Diffstat (limited to 'tests/pos/i518.scala')
-rw-r--r--tests/pos/i518.scala6
1 files changed, 6 insertions, 0 deletions
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)
+}