diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-05-05 15:27:53 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-05-05 15:27:53 +0000 |
commit | 1c0df8f97ec740eca56e82049f42d2ab2ec45d73 (patch) | |
tree | 18ee25208fb688965dd04a5a67f2c074c5948e10 /test/files/pos/t4430.scala | |
parent | 93b421779764614b81764325e4cc0d33328f7e3a (diff) | |
download | scala-1c0df8f97ec740eca56e82049f42d2ab2ec45d73.tar.gz scala-1c0df8f97ec740eca56e82049f42d2ab2ec45d73.tar.bz2 scala-1c0df8f97ec740eca56e82049f42d2ab2ec45d73.zip |
fix #4502 and fix #4430. review by odersky.
Diffstat (limited to 'test/files/pos/t4430.scala')
-rw-r--r-- | test/files/pos/t4430.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t4430.scala b/test/files/pos/t4430.scala new file mode 100644 index 0000000000..746ecb271e --- /dev/null +++ b/test/files/pos/t4430.scala @@ -0,0 +1,11 @@ +class Crash { + def S(op: => Double) = 0 + def A(a: Int, b: Int) = 0 + + val t = 0 + + val q = A( + b = S { val xxx = t ; 42 }, + a = 0 + ) +} |