Previously, import assertion parsing would try to parse both { and }, even if both were missing. If both were missing, the error for } could occur past the end of the file, causing an assertion. Fixes #46364
11 lines
538 B
Plaintext
11 lines
538 B
Plaintext
tests/cases/conformance/importAssertion/importAssertion4.ts(1,20): error TS2307: Cannot find module './first' or its corresponding type declarations.
|
|
tests/cases/conformance/importAssertion/importAssertion4.ts(2,1): error TS1005: '{' expected.
|
|
|
|
|
|
==== tests/cases/conformance/importAssertion/importAssertion4.ts (2 errors) ====
|
|
import * as f from "./first" assert
|
|
~~~~~~~~~
|
|
!!! error TS2307: Cannot find module './first' or its corresponding type declarations.
|
|
|
|
|
|
!!! error TS1005: '{' expected. |