-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [tests] Add test for #5709 * [tests] Json RPC tests vs hover requests for type documentation * [tests] Better typing for extractDoc
- Loading branch information
Showing
2 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package cases; | ||
|
||
class Issue5709 extends DisplayTestCase { | ||
/** | ||
class Main { | ||
public static function main() { | ||
var foo:F{-1-}oo = new F{-2-}oo(); | ||
} | ||
} | ||
/** Foo doc **\/ | ||
class Foo { | ||
public function new() {} | ||
} | ||
/** IBaz doc **\/ | ||
interface IBaz {} | ||
class Bar extends F{-3-}oo {} | ||
class Baz implements I{-5-}Baz {} | ||
typedef Foos = Array<F{-4-}oo>; | ||
**/ | ||
function test() { | ||
for (i in 1...5) eq("Foo doc", doc(pos(i))); | ||
eq("IBaz doc", doc(pos(5))); | ||
} | ||
} |