Skip to content

Commit

Permalink
[tests] Add test for #5709
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 22, 2025
1 parent e0f184c commit 96e8bab
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/display/src/cases/Issue5709.hx
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)));
}
}

0 comments on commit 96e8bab

Please sign in to comment.