Posted by Andrey Tarantsov Sat 24th Feb 2007 20:38 - Syntax is Diff - 36 views
Download | New Post | Modify | Hide line numbers
  1. ### Eclipse Workspace Patch 1.0
  2. #P org.eclipse.dltk.ruby.core.tests
  3. Index: workspace/typeinference/.buildpath
  4. ===================================================================
  5. RCS file: /cvsroot/technology/org.eclipse.dltk/ruby/tests/org.eclipse.dltk.ruby.core.tests/workspace/typeinference/.buildpath,v
  6. retrieving revision 1.2
  7. diff -u -r1.2 .buildpath
  8. --- workspace/typeinference/.buildpath    24 Feb 2007 13:50:32 -0000    1.2
  9. +++ workspace/typeinference/.buildpath    24 Feb 2007 20:36:33 -0000
  10. @@ -3,5 +3,6 @@
  11.      
  12.      
  13.      
  14. +   
  15.      
  16.  
  17. Index: workspace/typeinference/methods/simple2.rb
  18. ===================================================================
  19. RCS file: workspace/typeinference/methods/simple2.rb
  20. diff -N workspace/typeinference/methods/simple2.rb
  21. --- /dev/null    1 Jan 1970 00:00:00 -0000
  22. +++ workspace/typeinference/methods/simple2.rb    1 Jan 1970 00:00:00 -0000
  23. @@ -0,0 +1,12 @@
  24. +
  25. +class MethodsSimpleBoz
  26. +    class Bar
  27. +        def foo
  28. +            bar ## expr bar => Fixnum
  29. +        end
  30. +       
  31. +        def bar
  32. +            42
  33. +        end
  34. +    end
  35. +end
  36. Index: workspace/typeinference/methods/simple.rb
  37. ===================================================================
  38. RCS file: workspace/typeinference/methods/simple.rb
  39. diff -N workspace/typeinference/methods/simple.rb
  40. --- /dev/null    1 Jan 1970 00:00:00 -0000
  41. +++ workspace/typeinference/methods/simple.rb    1 Jan 1970 00:00:00 -0000
  42. @@ -0,0 +1,12 @@
  43. +
  44. +class MethodsSimpleBoz
  45. +    class Bar
  46. +        def foo
  47. +            bar ## expr bar => Str
  48. +        end
  49. +       
  50. +        def bar
  51. +            "Foo"
  52. +        end
  53. +    end
  54. +end
  55. Index: workspace/typeinference/variables/self_singletons.rb
  56. ===================================================================
  57. RCS file: workspace/typeinference/variables/self_singletons.rb
  58. diff -N workspace/typeinference/variables/self_singletons.rb
  59. --- /dev/null    1 Jan 1970 00:00:00 -0000
  60. +++ workspace/typeinference/variables/self_singletons.rb    1 Jan 1970 00:00:00 -0000
  61. @@ -0,0 +1,18 @@
  62. +
  63. +class BozSelfSingletons
  64. +    class Bar
  65. +        self ## expr self => BozSelfSingletons::Bar
  66. +       
  67. +        def foo
  68. +            self ## expr self => BozSelfSingletons::Bar.new
  69. +        end
  70. +       
  71. +        def self.foo
  72. +            self ## expr self => BozSelfSingletons::Bar
  73. +        end
  74. +       
  75. +        def Bar.foo
  76. +            self ## expr self => BozSelfSingletons::Bar
  77. +        end
  78. +    end
  79. +end
  80. Index: src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
  81. ===================================================================
  82. RCS file: src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
  83. diff -N src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java
  84. --- /dev/null    1 Jan 1970 00:00:00 -0000
  85. +++ src/org/eclipse/dltk/ruby/tests/typeinference/MethodsTest.java    1 Jan 1970 00:00:00 -0000
  86. @@ -0,0 +1,11 @@
  87. +package org.eclipse.dltk.ruby.tests.typeinference;
  88. +
  89. +import junit.framework.Test;
  90. +
  91. +public class MethodsTest {
  92. +
  93. +    public static Test suite() {
  94. +        return new TypeInferenceSuite("/workspace/typeinference/methods");
  95. +    }
  96. +
  97. +}
  98.  

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

 

Comments: 0