diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-07 04:45:44 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-07 04:45:44 +0000 |
commit | 1065c911a1b896132b54d2573d80152b5fe7404f (patch) | |
tree | 38fe9db364b1b0102f1ff473e8bbc11ef0e5c904 /test/files/pos | |
parent | fcc962b1973aedf1c892aac0d1fce7e5fa32fbc0 (diff) | |
download | scala-1065c911a1b896132b54d2573d80152b5fe7404f.tar.gz scala-1065c911a1b896132b54d2573d80152b5fe7404f.tar.bz2 scala-1065c911a1b896132b54d2573d80152b5fe7404f.zip |
The comment for isCoDefinedWith has long said
Is this symbol defined in the same scope
and compilation unit as `that' symbol?
But "same scope" was never checked, only "same compilation unit."
Presumably other layers of logic kept this from being noticed until now,
but it has been crashing sbt. Added check to isCoDefinedWith. Closes
#4220, review by odersky.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug4220.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/bug4220.scala b/test/files/pos/bug4220.scala new file mode 100644 index 0000000000..98f2649767 --- /dev/null +++ b/test/files/pos/bug4220.scala @@ -0,0 +1,7 @@ +// don't know if our half-working sbt build is meaningfully +// tested for #4220 with this, but it can't hurt. +class Boo(a: Int = 0) + +object test { + class Boo +} |