aboutsummaryrefslogtreecommitdiff
path: root/test/import5.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2017-03-24 11:43:08 -0700
committerRobert Griesemer <gri@golang.org>2017-03-24 20:07:15 +0000
commit5e954047bcb77b219629676db3e5d057bed48360 (patch)
tree135f9158a08456516c93406ca1ffdb36d1930ce1 /test/import5.go
parent0b9607d1d648ae77d2db86a991db4a1fe921dbd8 (diff)
downloadgo-5e954047bcb77b219629676db3e5d057bed48360.tar.gz
go-5e954047bcb77b219629676db3e5d057bed48360.zip
cmd/compile: be slightly more tolerant in case of certain syntax errors
Avoid construction of incorrect syntax trees in presence of errors. For #19663. Change-Id: I43025a3cf0fe02cae9a57e8bb9489b5f628c3fd7 Reviewed-on: https://go-review.googlesource.com/38604 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test/import5.go')
-rw-r--r--test/import5.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/import5.go b/test/import5.go
index d9673cfe9f..8fdc8c3757 100644
--- a/test/import5.go
+++ b/test/import5.go
@@ -21,7 +21,7 @@ import _ "go/parser"
//import "greek/αβ"
// Import paths must be strings.
-import 42 // ERROR "missing import path; require quoted string"
-import 'a' // ERROR "missing import path; require quoted string"
-import 3.14 // ERROR "missing import path; require quoted string"
-import 0.25i // ERROR "missing import path; require quoted string"
+import 42 // ERROR "import path must be a string"
+import 'a' // ERROR "import path must be a string"
+import 3.14 // ERROR "import path must be a string"
+import 0.25i // ERROR "import path must be a string"