From c925964406607ca53df6d7fcba2ad51ae084655f Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 29 Jul 2008 10:20:51 +0000 Subject: experimenting with Signature attribute --- test/pending/pos/sig/sigs.java | 5 +++++ test/pending/pos/sig/sigs.scala | 6 ++++++ test/pending/pos/sig/sigtest.scala | 3 +++ 3 files changed, 14 insertions(+) create mode 100755 test/pending/pos/sig/sigs.java create mode 100755 test/pending/pos/sig/sigs.scala create mode 100755 test/pending/pos/sig/sigtest.scala (limited to 'test/pending/pos/sig') diff --git a/test/pending/pos/sig/sigs.java b/test/pending/pos/sig/sigs.java new file mode 100755 index 0000000000..0fc0c7008f --- /dev/null +++ b/test/pending/pos/sig/sigs.java @@ -0,0 +1,5 @@ +package test; +class Test extends T { + Object y = bar("abc"); + String x = foo("abc"); +} \ No newline at end of file diff --git a/test/pending/pos/sig/sigs.scala b/test/pending/pos/sig/sigs.scala new file mode 100755 index 0000000000..4579f225d9 --- /dev/null +++ b/test/pending/pos/sig/sigs.scala @@ -0,0 +1,6 @@ +package test +class T { + def foo[T](x: T): T = x + def bar[T](x: T): T = x +} + diff --git a/test/pending/pos/sig/sigtest.scala b/test/pending/pos/sig/sigtest.scala new file mode 100755 index 0000000000..1d091390f7 --- /dev/null +++ b/test/pending/pos/sig/sigtest.scala @@ -0,0 +1,3 @@ +object Test extends T with Application { + val x: String = foo("abc") +} -- cgit v1.2.3