mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Update baselines
This commit is contained in:
parent
1415cf4ea2
commit
f7df4e00cc
22
tests/baselines/reference/exportImport.errors.txt
Normal file
22
tests/baselines/reference/exportImport.errors.txt
Normal file
@ -0,0 +1,22 @@
|
||||
tests/cases/compiler/w1.ts(2,1): error TS2449: Class 'Widget1' used before its declaration.
|
||||
tests/cases/compiler/w1.ts(2,10): error TS2449: Class 'Widget1' used before its declaration.
|
||||
|
||||
|
||||
==== tests/cases/compiler/consumer.ts (0 errors) ====
|
||||
import e = require('./exporter');
|
||||
|
||||
export function w(): e.w { // Should be OK
|
||||
return new e.w();
|
||||
}
|
||||
==== tests/cases/compiler/w1.ts (2 errors) ====
|
||||
|
||||
export = Widget1
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! error TS2449: Class 'Widget1' used before its declaration.
|
||||
~~~~~~~
|
||||
!!! error TS2449: Class 'Widget1' used before its declaration.
|
||||
class Widget1 { name = 'one'; }
|
||||
|
||||
==== tests/cases/compiler/exporter.ts (0 errors) ====
|
||||
export import w = require('./w1');
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts(1,1): error TS2449: Class 'Foo' used before its declaration.
|
||||
tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts(1,10): error TS2449: Class 'Foo' used before its declaration.
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts (0 errors) ====
|
||||
import Foo = require("./privacyCheckExternalModuleExportAssignmentOfGenericClass_0");
|
||||
export = Bar;
|
||||
interface Bar {
|
||||
foo: Foo<number>;
|
||||
}
|
||||
==== tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts (2 errors) ====
|
||||
export = Foo;
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2449: Class 'Foo' used before its declaration.
|
||||
~~~
|
||||
!!! error TS2449: Class 'Foo' used before its declaration.
|
||||
class Foo<A> {
|
||||
constructor(public a: A) { }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user