mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Although backtick is a kind of trivia piece, Token::getCommentRange doesn't take it into account. Invalid Token::getCommentRange used to cause compiler crash. rdar://problem/42492793 https://bugs.swift.org/browse/SR-8315
5 lines
114 B
Swift
5 lines
114 B
Swift
/*comment*/`init`()
|
|
foo();/*comment*/`var`()
|
|
|
|
// RUN: %target-swift-ide-test -syntax-coloring -source-filename %s
|