|
@@ -396,4 +396,14 @@ typedef Foo = {
|
|
|
checkReplaceRange(markers, 1, 2, response);
|
|
|
equals("Cl", response.filterString);
|
|
|
}
|
|
|
+
|
|
|
+ function testIssue8669_typehint() {
|
|
|
+ complete("class Main { static function main() { var t:{-1-} }}", 1);
|
|
|
+ checkReplaceRange(markers, 1, 1, response);
|
|
|
+ equals("", response.filterString);
|
|
|
+
|
|
|
+ complete("class Main { static function main() { var t:{-1-}Cl{-2-} }}", 2);
|
|
|
+ checkReplaceRange(markers, 1, 2, response);
|
|
|
+ equals("Cl", response.filterString);
|
|
|
+ }
|
|
|
}
|