summaryrefslogtreecommitdiff
path: root/test/files/res/t5167/t5167_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/res/t5167/t5167_1.scala')
-rw-r--r--test/files/res/t5167/t5167_1.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/res/t5167/t5167_1.scala b/test/files/res/t5167/t5167_1.scala
new file mode 100644
index 0000000000..ed28243507
--- /dev/null
+++ b/test/files/res/t5167/t5167_1.scala
@@ -0,0 +1,12 @@
+package compilerbug
+
+trait SadTrait {
+ def buggyMethod[T](argWithDefault1: Int = 0)(argWithDefault2: String = "default") {
+ for (i <- 0 to 1) {
+ val x = argWithDefault1
+ val y = argWithDefault2
+ }
+ }
+}
+
+object SadObject extends SadTrait