mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Add "A module cannot have multiple default exports." message for multiple "default" exports
This commit is contained in:
1 parent
543cce5e43
commit
69ff6f5090
13 files changed
+154
-7
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// @module: commonjs
|
||||
// @target: ES5
|
||||
|
||||
export default function f();
|
||||
export default function f(x: string);
|
||||
export default function f(...args: any[]) {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// @module: commonjs
|
||||
// @target: ES5
|
||||
|
||||
export default class C {
|
||||
}
|
||||
|
||||
export default class C {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// @module: commonjs
|
||||
// @target: ES5
|
||||
|
||||
export default function f() {
|
||||
}
|
||||
|
||||
export default function f() {
|
||||
}
|
||||
Reference in new issue
Block a user