Files
swift-mirror/test/PlaygroundTransform/import_error.swift
Doug Gregor a0aaca176c [SE-0258] Clarify diagnostic banning '$' identifiers.
Thanks to Zachary Waldowski for helping clarify this.
2019-05-31 15:17:22 -07:00

6 lines
200 B
Swift

// RUN: %empty-directory(%t)
// RUN: cp %s %t/main.swift
// RUN: %target-swift-frontend -typecheck -playground %t/main.swift -verify
var $a = 2 // expected-error {{cannot declare entity named '$a'}}