Files
swift-mirror/test/types.swift
Chris Lattner fa2ea94348 always turn a named reference to a type into an IdentifierType.
This preserving source location info and reduces redundancy in the parser.


Swift SVN r1065
2012-01-18 01:57:44 +00:00

10 lines
133 B
Swift

// RUN: %swift %s -verify
import swift
var x : int
func test() {
var y : x // expected-error {{'x' does not name a type}}
}