Posted by Andrey Tarantsov Sat 24th Feb 2007 20:38 - Syntax is Diff - 36 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
### Eclipse Workspace Patch 1.0
-
#P org.eclipse.dltk.ruby.core.tests
-
Index: workspace/typeinference/.buildpath
-
===================================================================
-
RCS file: /cvsroot/technology/org.eclipse.dltk/ruby/tests/org.eclipse.dltk.ruby.core.tests/workspace/typeinference/.buildpath,v
-
retrieving revision 1.2
-
diff -u -r1.2 .buildpath
-
--- workspace/typeinference/.buildpath 24 Feb 2007 13:50:32 -0000 1.2
-
+++ workspace/typeinference/.buildpath 24 Feb 2007 20:36:33 -0000
-
@@ -3,5 +3,6 @@
-
-
-
-
+
-
-
-
Index: workspace/typeinference/methods/simple2.rb
-
===================================================================
-
RCS file: workspace/typeinference/methods/simple2.rb
-
diff -N workspace/typeinference/methods/simple2.rb
-
--- /dev/null 1 Jan 1970 00:00:00 -0000
-
+++ workspace/typeinference/methods/simple2.rb 1 Jan 1970 00:00:00 -0000
-
@@ -0,0 +1,12 @@
-
+
-
+class MethodsSimpleBoz
-
+ class Bar
-
+ def foo
-
+ bar ## expr bar => Fixnum
-
+ end
-
+
-
+ def bar
-
+ 42
-
+ end
-
+ end
-
+end
-
Index: workspace/typeinference/methods/simple.rb
-
===================================================================
-
RCS file: workspace/typeinference/methods/simple.rb
-
diff -N workspace/typeinference/methods/simple.rb
-
--- /dev/null 1 Jan 1970 00:00:00 -0000
-
+++ workspace/typeinference/methods/simple.rb 1 Jan 1970 00:00:00 -0000
-
@@ -0,0 +1,12 @@
-
+
-
+class MethodsSimpleBoz
-
+ class Bar
-
+ def foo
-
+ bar ## expr bar => Str
-
+ end
-
+
-
+ def bar
-
+ "Foo"
-
+ end
-
+ end
-
+end
-
Index: workspace/typeinference/variables/self_singletons.rb
-
===================================================================
-
RCS file: workspace/typeinference/variables/self_singletons.rb
-
diff -N workspace/typeinference/variables/self_singletons.rb
-
--- /dev/null 1 Jan 1970 00:00:00 -0000
-
+++ workspace/typeinference/variables/self_singletons.rb 1 Jan 1970 00:00:00 -0000
-
@@ -0,0 +1,18 @@
-
+
-
+class BozSelfSingletons
-
+ class Bar
-
+ self ## expr self => BozSelfSingletons::Bar
-
+
-
+ def foo
-
+ self ## expr self => BozSelfSingletons::Bar.new
-
+ end
-
+
-
+ def self.foo
-
+ self ## expr self => BozSelfSingletons::Bar
-
+ end
-
+
-
+ def Bar.foo
-
+ self ## expr self => BozSelfSingletons::Bar
-
+ end
-
+ end
-
+end
-
Index: src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
-
===================================================================
-
RCS file: src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
-
diff -N src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
-
--- /dev/null 1 Jan 1970 00:00:00 -0000
-
+++ src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java 1 Jan 1970 00:00:00 -0000
-
@@ -0,0 +1,11 @@
-
+package org.eclipse.dltk.ruby.tests.typeinference;
-
+
-
+import junit.framework.Test;
-
+
-
+public class MethodsTest {
-
+
-
+ public static Test suite() {
-
+ return new TypeInferenceSuite("/workspace/typeinference/methods");
-
+ }
-
+
-
+}
-
PermaLink to this entry https://pastebin.co.uk/10889
Posted by Andrey Tarantsov Sat 24th Feb 2007 20:38 - Syntax is Diff - 36 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0