diff options
author | Christopher Vogt <christopher.vogt@epfl.ch> | 2013-07-14 06:47:49 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-07-16 12:39:00 +1000 |
commit | c4bf1d5fb5a4d5e64e64b6af985fc795faa15bce (patch) | |
tree | e3ac40d3334ce79d8f596376becfe732ae733356 /test/files/neg/t7636-neg.check | |
parent | 2247593472031fd9712b652bab0b978a788e46ef (diff) | |
download | scala-c4bf1d5fb5a4d5e64e64b6af985fc795faa15bce.tar.gz scala-c4bf1d5fb5a4d5e64e64b6af985fc795faa15bce.tar.bz2 scala-c4bf1d5fb5a4d5e64e64b6af985fc795faa15bce.zip |
SI-7636 Fix a NPE in typing class constructors
If we encountered an erroneous super call due to a
failure in parent type argument inference, we must
avoid inspecting the untyped children of erroneous
trees.
Diffstat (limited to 'test/files/neg/t7636-neg.check')
-rw-r--r-- | test/files/neg/t7636-neg.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t7636-neg.check b/test/files/neg/t7636-neg.check new file mode 100644 index 0000000000..f70d50bee3 --- /dev/null +++ b/test/files/neg/t7636-neg.check @@ -0,0 +1,10 @@ +t7636.scala:3: error: illegal inheritance; + self-type Main.C does not conform to Main.ResultTable[_$3]'s selftype Main.ResultTable[_$3] + class C extends ResultTable(Left(5):Either[_,_])(5) + ^ +t7636.scala:3: error: type mismatch; + found : Either[_$2,_$3(in constructor C)] where type _$3(in constructor C), type _$2 + required: Either[_, _$3(in object Main)] where type _$3(in object Main) + class C extends ResultTable(Left(5):Either[_,_])(5) + ^ +two errors found |