mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 03:17:51 -05:00
Added failing fourslash test.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @noImplicitAny: true
|
||||
|
||||
////interface A {
|
||||
//// numProp: number;
|
||||
////}
|
||||
////
|
||||
////interface B {
|
||||
//// strProp: string;
|
||||
////}
|
||||
////
|
||||
////interface Foo {
|
||||
//// method1(arg: A): void;
|
||||
//// method2(arg: B): void;
|
||||
////}
|
||||
////
|
||||
////function getFoo1(): Foo {
|
||||
//// return {
|
||||
//// method1(/*param1*/arg) {
|
||||
//// arg.numProp = 10;
|
||||
//// },
|
||||
//// method2(/*param2*/arg) {
|
||||
//// arg.strProp = "hello";
|
||||
//// }
|
||||
//// }
|
||||
////}
|
||||
|
||||
goTo.marker("param1");
|
||||
verify.quickInfoIs("(parameter) arg: A")
|
||||
goTo.marker("param2");
|
||||
verify.quickInfoIs("(parameter) arg: B")
|
||||
Reference in New Issue
Block a user