summaryrefslogtreecommitdiff
path: root/test/files/run/t4766.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-08 08:01:40 +0000
committerPaul Phillips <paulp@improving.org>2011-11-08 08:01:40 +0000
commit0362b6af90a14e919d3ee1fe38216830b1828ec9 (patch)
tree993a88884878c9e8e595cf07a49ae22f997c740e /test/files/run/t4766.scala
parent106180d020d3436b29432235fffe098d15fa7422 (diff)
downloadscala-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/files/run/t4766.scala')
-rw-r--r--test/files/run/t4766.scala7
1 files changed, 7 insertions, 0 deletions
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>)
+}