summaryrefslogtreecommitdiff
path: root/test/files/pos/bug1237.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-07-25 15:27:04 +0000
committerMartin Odersky <odersky@gmail.com>2007-07-25 15:27:04 +0000
commit538e22b80c657dcc3326959a8601cd0a0da78e37 (patch)
tree12eae89e320905e7f2286751c93024007a733bdf /test/files/pos/bug1237.scala
parent95eaa29b50cd8de56c798a6461d933d763a946fc (diff)
downloadscala-538e22b80c657dcc3326959a8601cd0a0da78e37.tar.gz
scala-538e22b80c657dcc3326959a8601cd0a0da78e37.tar.bz2
scala-538e22b80c657dcc3326959a8601cd0a0da78e37.zip
fixed bugs 1237, 1241
Diffstat (limited to 'test/files/pos/bug1237.scala')
-rw-r--r--test/files/pos/bug1237.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/bug1237.scala b/test/files/pos/bug1237.scala
new file mode 100644
index 0000000000..01f656f580
--- /dev/null
+++ b/test/files/pos/bug1237.scala
@@ -0,0 +1,15 @@
+class HelloWorld {
+ def main(args: Array[String]) {
+
+ object TypeBool;
+
+ trait Fct
+ {
+ def g(x : int) = TypeBool // breaks.
+
+ // def g(x : int) = 3 // fine.
+ }
+
+ ()
+ }
+}