diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-08 08:01:40 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-08 08:01:40 +0000 |
commit | 0362b6af90a14e919d3ee1fe38216830b1828ec9 (patch) | |
tree | 993a88884878c9e8e595cf07a49ae22f997c740e /test | |
parent | 106180d020d3436b29432235fffe098d15fa7422 (diff) | |
download | scala-0362b6af90a14e919d3ee1fe38216830b1828ec9.tar.gz scala-0362b6af90a14e919d3ee1fe38216830b1828ec9.tar.bz2 scala-0362b6af90a14e919d3ee1fe38216830b1828ec9.zip |
Fixing logic in structural types.
Check number of arguments before jumping to conclusion that a primitive
seeming structural call might really be primitive. Closes SI-4766, no
review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t4766.check | 1 | ||||
-rw-r--r-- | test/files/run/t4766.scala | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t4766.check b/test/files/run/t4766.check new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/test/files/run/t4766.check @@ -0,0 +1 @@ +1 diff --git a/test/files/run/t4766.scala b/test/files/run/t4766.scala new file mode 100644 index 0000000000..c2a864ddb2 --- /dev/null +++ b/test/files/run/t4766.scala @@ -0,0 +1,7 @@ +object Test extends App { + val x = new { + def > = 1 + } + + println(x>) +} |