Permalink
Browse files

More tests

  • Loading branch information...
1 parent c8b61e7 commit 988908b57a740f114f0891e49718f8b4decd5183 Amos Wenger committed Jun 7, 2012
Showing with 46 additions and 2 deletions.
  1. +1 −1 samples/glass.ooc
  2. +1 −1 samples/sample.use
  3. +21 −0 samples/util.ooc
  4. +23 −0 samples/utilx3.ooc
View
@@ -11,7 +11,7 @@ Glass: class <X> {
main: func {
Glass<Char> new('c')
- Glass<Int> new(42)
+ Glass<Int> new(42 as Int)
}
View
@@ -1 +1 @@
-Main: glass.ooc
+Main: util.ooc
View
@@ -0,0 +1,21 @@
+
+Util: class <X> {
+
+ investigate: static func {
+ "investigate" println()
+ }
+
+}
+
+Spoon: class extends Object {
+}
+
+#specialize Util<Object>
+
+main: func {
+ Util<Char> investigate()
+ Util<Int> investigate()
+ Util<Spoon> investigate()
+}
+
+
View
@@ -0,0 +1,23 @@
+
+Util: class <X> {
+
+ investigate: static func {
+ "investigate" println()
+ }
+
+}
+
+Spoon: class extends Object {
+}
+
+#specialize Util<Char>
+#specialize Util<Int>
+#specialize Util<Object>
+
+main: func {
+ Util<Char> investigate()
+ Util<Int> investigate()
+ Util<Spoon> investigate()
+}
+
+

0 comments on commit 988908b

Please sign in to comment.