summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-11-29 16:28:45 -0800
committerGitHub <noreply@github.com>2016-11-29 16:28:45 -0800
commit50d46c12766228155a6d52cf7b33add4fa24a86e (patch)
tree3aa6d7178eeb46f34f794db275802e1b5f583521 /test/files/pos
parent71a2cad36fa3c69d2ff3461f6a60ba5c846fb05e (diff)
parentb00a3e50da66086ef0f1a4c214866a591089b934 (diff)
downloadscala-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.scala6
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)
+}