diff options
author | Paul Phillips <paulp@improving.org> | 2013-10-12 10:51:37 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-10-12 10:51:37 -0700 |
commit | c4850dabf3d3d1ca89c9138237b5537ea1b339ca (patch) | |
tree | 9ac684898a6f4f57a58d154072c59d4e87f34371 | |
parent | 72736f7238616f4e56a0ee28e9d204d95e81107f (diff) | |
parent | 5d6bcfe1bb3e7386cd0e6e8133931508c86b4a04 (diff) | |
download | scala-c4850dabf3d3d1ca89c9138237b5537ea1b339ca.tar.gz scala-c4850dabf3d3d1ca89c9138237b5537ea1b339ca.tar.bz2 scala-c4850dabf3d3d1ca89c9138237b5537ea1b339ca.zip |
Merge pull request #3032 from retronym/ticket/7239-test
SI-7239 A bonus test case from [scala-user]
-rw-r--r-- | test/files/neg/t7239.check | 4 | ||||
-rw-r--r-- | test/files/neg/t7239.scala | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/t7239.check b/test/files/neg/t7239.check new file mode 100644 index 0000000000..80b14f8fc6 --- /dev/null +++ b/test/files/neg/t7239.check @@ -0,0 +1,4 @@ +t7239.scala:10: error: not found: value foBar + fooBar = foBar.toInt + ^ +one error found diff --git a/test/files/neg/t7239.scala b/test/files/neg/t7239.scala new file mode 100644 index 0000000000..f62cac0a49 --- /dev/null +++ b/test/files/neg/t7239.scala @@ -0,0 +1,12 @@ +class Foo { + def toInt = 12 +} +case class Bar( fooBar : Int ) + +// spurious "erroneous or inaccessible type" error in 2.10.1 +class Test { + var fooBar : Foo = null + def build = Bar( + fooBar = foBar.toInt + ) +} |