mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Add fourslash testcases
This commit is contained in:
parent
48002d4d48
commit
b08cd8c9a9
10
tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts
Normal file
10
tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @declaration: true
|
||||
//// interface privateInterface {}
|
||||
//// export class Bar implements /*1*/privateInterface/*2*/{ }
|
||||
|
||||
verify.errorExistsBetweenMarkers("1", "2");
|
||||
verify.numberOfErrorsInCurrentFile(1);
|
||||
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
//// interface privateInterface {}
|
||||
//// export class Bar implements /*1*/privateInterface/*2*/{ }
|
||||
|
||||
debugger
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user