소스 검색

Add abstract method completion test (closes #3256)

Dan Korostelev 11 년 전
부모
커밋
00233d9930
3개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      tests/misc/projects/Issue3256/Main.hx
  2. 1 0
      tests/misc/projects/Issue3256/compile.hxml
  3. 4 0
      tests/misc/projects/Issue3256/compile.hxml.stderr

+ 10 - 0
tests/misc/projects/Issue3256/Main.hx

@@ -0,0 +1,10 @@
+abstract A(Int) from Int {
+    public function addFloat(f:Float):Float return this + f;
+}
+
+class Main {
+    static function main() {
+        var a:A = 1;
+        a.addFloat(
+    }
+}

+ 1 - 0
tests/misc/projects/Issue3256/compile.hxml

@@ -0,0 +1 @@
+--display Main.hx@173

+ 4 - 0
tests/misc/projects/Issue3256/compile.hxml.stderr

@@ -0,0 +1,4 @@
+<type>
+f : Float -&gt; Float
+</type>
+