Descriptioncmd/gc: improve syntax error for "import testing"
for this program:
package A
import testing
old diagnostics:
pkg.go:2: syntax error: unexpected semicolon or newline, expecting string literal
now:
pkg.go:2: syntax error: missing import path; require quoted string
Fixes issue 5332.
Patch Set 1 #Patch Set 2 : diff -r d29da2ced72b https://code.google.com/p/go #Patch Set 3 : diff -r d29da2ced72b https://code.google.com/p/go #Patch Set 4 : diff -r d29da2ced72b https://code.google.com/p/go #
Total comments: 2
Patch Set 5 : diff -r d29da2ced72b https://code.google.com/p/go #Patch Set 6 : diff -r 8efe0c9d6a0d https://code.google.com/p/go/ #Patch Set 7 : diff -r f43090f2eb42 https://code.google.com/p/go/ #MessagesTotal messages: 5
|