mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Add bad test case
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// @filename: types.ts
|
||||
declare module "*.foo" {
|
||||
export interface OhNo { star: string }
|
||||
}
|
||||
|
||||
// @filename: test.ts
|
||||
declare module "a.foo" {
|
||||
export interface OhNo { a: string }
|
||||
}
|
||||
import { OhNo } from "b.foo"
|
||||
declare let ohno: OhNo;
|
||||
ohno.a // oh no
|
||||
Reference in New Issue
Block a user