diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-11-29 16:28:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 16:28:45 -0800 |
commit | 50d46c12766228155a6d52cf7b33add4fa24a86e (patch) | |
tree | 3aa6d7178eeb46f34f794db275802e1b5f583521 /test/files/pos | |
parent | 71a2cad36fa3c69d2ff3461f6a60ba5c846fb05e (diff) | |
parent | b00a3e50da66086ef0f1a4c214866a591089b934 (diff) | |
download | scala-50d46c12766228155a6d52cf7b33add4fa24a86e.tar.gz scala-50d46c12766228155a6d52cf7b33add4fa24a86e.tar.bz2 scala-50d46c12766228155a6d52cf7b33add4fa24a86e.zip |
Merge pull request #5554 from retronym/ticket/10009
SI-10009 Fields survive untypecheck/retypecheck
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t10009.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t10009.scala b/test/files/pos/t10009.scala new file mode 100644 index 0000000000..7cd96f0f3d --- /dev/null +++ b/test/files/pos/t10009.scala @@ -0,0 +1,6 @@ +class C { + def c(a: Any, b: Any*) = a +} +object Test { + new C().c(b = new { val x = 42 }, a = 0) +} |