From 0362b6af90a14e919d3ee1fe38216830b1828ec9 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 8 Nov 2011 08:01:40 +0000 Subject: 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. --- test/files/run/t4766.check | 1 + test/files/run/t4766.scala | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test/files/run/t4766.check create mode 100644 test/files/run/t4766.scala (limited to 'test/files') 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>) +} -- cgit v1.2.3