3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Verify that invalid imports are rejected by the compiler.
12 // Correct import paths.
18 // Correct import paths, but the packages don't exist.
23 // Import paths must be strings.
24 import 42 // ERROR "import path must be a string"
25 import 'a' // ERROR "import path must be a string"
26 import 3.14 // ERROR "import path must be a string"
27 import 0.25i
// ERROR "import path must be a string"