mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
New construction of a parser instance will reset the marked parser position in PersistentParserState. We should recover the marked parser position during on-demand parsing in case the marked position will be later used to create another parser instance to continue parsing linearly.
6 lines
187 B
Swift
6 lines
187 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 4
|
|
|
|
extension X { } // expected-error {{use of undeclared type 'X'}}
|
|
_ = 1
|
|
f() // expected-error {{use of unresolved identifier 'f'}}
|