Skip to content

Instantly share code, notes, and snippets.

Created October 15, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/58ad56176a407d0173e2843ac398f5e0 to your computer and use it in GitHub Desktop.
Save anonymous/58ad56176a407d0173e2843ac398f5e0 to your computer and use it in GitHub Desktop.
~ $ gopherjs test go/types
--- FAIL: TestPredicatesInfo (0.22s)
api_test.go:41: package m0: didn't type-check (PredicatesInfo:1:20: could not import os (Config.Importer not installed))
--- FAIL: TestScopesInfo (0.01s)
api_test.go:41: package p1: didn't type-check (ScopesInfo:1:22: could not import fmt (Config.Importer not installed))
--- FAIL: TestBuiltinSignatures (0.22s)
builtins_test.go:141: var s []int; _ = append(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []int; _ = append(s, 0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []int; _ = (append)(s, 0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []byte; _ = ((append))(s, 0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []byte; _ = append(s, "foo"...): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T []byte; var s T; var str string; _ = append(s, str...): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T []byte; type U string; var s T; var str U; _ = append(s, str...): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s [10]int; _ = cap(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s [10]int; _ = cap(&s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []int64; _ = cap(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c chan<-bool; _ = cap(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = len("foo"): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s string; _ = len(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s [10]int; _ = len(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s [10]int; _ = len(&s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var s []int64; _ = len(s): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c chan<-bool; _ = len(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var m map[string]float32; _ = len(m): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c chan int; close(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c chan<- chan string; close(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = complex(1, 0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var re float32; _ = complex(re, 1.0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var im float64; _ = complex(1, im): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type F32 float32; var re, im F32; _ = complex(re, im): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type F64 float64; var re, im F64; _ = complex(re, im): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var src, dst []byte; copy(dst, src): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T [][]int; var src, dst T; _ = copy(dst, src): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var src string; var dst []byte; copy(dst, src): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T string; type U []byte; var src T; var dst U; copy(dst, src): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var dst []byte; copy(dst, "hello"): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var m map[string]bool; delete(m, "foo"): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type (K string; V int); var m map[K]V; delete(m, "foo"): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = imag(1i): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c complex64; _ = imag(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c complex128; _ = imag(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type C64 complex64; var c C64; _ = imag(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type C128 complex128; var c C128; _ = imag(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = real(1i): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c complex64; _ = real(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var c complex128; _ = real(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type C64 complex64; var c C64; _ = real(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type C128 complex128; var c C128; _ = real(c): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = make([]int, 10): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T []byte; _ = make(T, 10, 20): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = new(int): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type T struct{}; _ = new(T): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: panic(0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: panic("foo"): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: print(): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: print(0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: print(1, 2.0, "foo", true): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: println(): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: println(0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: println(1, 2.0, "foo", true): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: recover(): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = recover(): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = unsafe.Alignof(0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var x struct{}; _ = unsafe.Alignof(x): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var x struct{f bool}; _ = unsafe.Offsetof(x.f): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var x struct{_ int; f bool}; _ = unsafe.Offsetof((&x).f): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: _ = unsafe.Sizeof(0): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: var x struct{}; _ = unsafe.Sizeof(x): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: assert(true): 1:19: could not import unsafe (Config.Importer not installed)
builtins_test.go:141: type B bool; const pred B = 1 < 2; assert(pred): 1:19: could not import unsafe (Config.Importer not installed)
--- FAIL: TestCheck (4.75s)
check_test.go:228: testdata/importdecl0a.src:11:4: no error expected: "could not import math (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0a.src:12:4: no error expected: "could not import net/rpc (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0a.src:13:41: no error expected: "could not import fmt (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0a.src:15:2: no error expected: "could not import reflect (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0a.src:24:2: no error expected: "could not import math/big (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0b.src:10:10: no error expected: "could not import testing (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0b.src:11:46: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/importdecl0b.src:27:8: no error expected: "undeclared name: T"
check_test.go:228: testdata/importdecl0b.src:31:10: no error expected: "undeclared name: Println"
check_test.go:228: testdata/importdecl0b.src:12:8: no error expected: "\"fmt\" imported but not used"
check_test.go:228: testdata/importdecl0b.src:10:8: no error expected: "\"testing\" imported but not used"
check_test.go:280: --- importdecl0: 2 source positions with expected (but not reported) errors:
check_test.go:283: testdata/importdecl0a.src:35:8: "not exported"
check_test.go:283: testdata/importdecl0a.src:41:6: "Value already declared through dot-import of package reflect"
check_test.go:228: testdata/importdecl1a.src:9:10: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/importdecl1a.src:11:7: no error expected: "undeclared name: Pointer"
check_test.go:228: testdata/importdecl1a.src:9:8: no error expected: "\"unsafe\" imported but not used"
check_test.go:228: testdata/cycles2.src:7:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/cycles3.src:7:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/decls0.src:9:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/decls1.src:10:2: no error expected: "could not import math (Config.Importer not installed)"
check_test.go:280: --- decls1: 2 source positions with expected (but not reported) errors:
check_test.go:283: testdata/decls1.src:67:6: "not declared"
check_test.go:283: testdata/decls1.src:68:6: "not a type"
check_test.go:228: testdata/decls2a.src:9:8: no error expected: "could not import time (Config.Importer not installed)"
check_test.go:228: testdata/decls2a.src:10:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/decls2b.src:9:8: no error expected: "could not import io (Config.Importer not installed)"
check_test.go:280: --- decls2: 5 source positions with expected (but not reported) errors:
check_test.go:283: testdata/decls2a.src:33:12: "field and method"
check_test.go:283: testdata/decls2a.src:98:7: "invalid receiver"
check_test.go:283: testdata/decls2a.src:99:7: "invalid receiver"
check_test.go:283: testdata/decls2a.src:104:7: "invalid"
check_test.go:283: testdata/decls2a.src:105:7: "invalid"
check_test.go:228: testdata/decls3.src:9:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/decls3.src:10:8: no error expected: "could not import fmt (Config.Importer not installed)"
check_test.go:280: --- decls3: 5 source positions with expected (but not reported) errors:
check_test.go:283: testdata/decls3.src:57:6: "ambiguous selector"
check_test.go:283: testdata/decls3.src:101:3: "cannot be unsafe.Pointer"
check_test.go:283: testdata/decls3.src:102:3: "cannot be unsafe.Pointer"
check_test.go:283: testdata/decls3.src:103:3: "cannot be unsafe.Pointer"
check_test.go:283: testdata/decls3.src:104:3: "cannot be unsafe.Pointer"
check_test.go:228: testdata/constdecl.src:7:8: no error expected: "could not import math (Config.Importer not installed)"
check_test.go:280: --- constdecl: 2 source positions with expected (but not reported) errors:
check_test.go:283: testdata/constdecl.src:13:11: "not constant"
check_test.go:283: testdata/constdecl.src:18:12: "not constant"
check_test.go:228: testdata/vardecl.src:8:8: no error expected: "could not import math (Config.Importer not installed)"
check_test.go:228: testdata/expr3.src:7:8: no error expected: "could not import time (Config.Importer not installed)"
check_test.go:280: --- expr3: 4 source positions with expected (but not reported) errors:
check_test.go:283: testdata/expr3.src:208:16: "unknown field"
check_test.go:283: testdata/expr3.src:210:3: "implicit assignment to unexported field wall in time.Time literal"
check_test.go:283: testdata/expr3.src:211:3: "implicit assignment"
check_test.go:283: testdata/expr3.src:212:3: "implicit assignment"
check_test.go:228: testdata/builtins.src:9:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:280: --- builtins: 30 source positions with expected (but not reported) errors:
check_test.go:283: testdata/builtins.src:692:21: "not enough arguments"
check_test.go:283: testdata/builtins.src:693:25: "too many arguments"
check_test.go:283: testdata/builtins.src:694:21: "not an expression"
check_test.go:283: testdata/builtins.src:698:21: "overflows"
check_test.go:283: testdata/builtins.src:699:21: "untyped nil"
check_test.go:283: testdata/builtins.src:700:2: "not used"
check_test.go:283: testdata/builtins.src:711:22: "invalid use of \\.\\.\\."
check_test.go:283: testdata/builtins.src:717:21: "used as value"
check_test.go:283: testdata/builtins.src:719:25: "too many arguments"
check_test.go:283: testdata/builtins.src:724:22: "not enough arguments"
check_test.go:283: testdata/builtins.src:725:26: "too many arguments"
check_test.go:283: testdata/builtins.src:726:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:727:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:728:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:732:2: "not used"
check_test.go:283: testdata/builtins.src:763:22: "embedded via a pointer"
check_test.go:283: testdata/builtins.src:764:22: "method value"
check_test.go:283: testdata/builtins.src:767:23: "invalid use of \\.\\.\\."
check_test.go:283: testdata/builtins.src:773:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:774:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:775:22: "not a selector expression"
check_test.go:283: testdata/builtins.src:780:20: "not enough arguments"
check_test.go:283: testdata/builtins.src:781:24: "too many arguments"
check_test.go:283: testdata/builtins.src:782:20: "not an expression"
check_test.go:283: testdata/builtins.src:786:20: "overflows"
check_test.go:283: testdata/builtins.src:787:20: "untyped nil"
check_test.go:283: testdata/builtins.src:788:2: "not used"
check_test.go:283: testdata/builtins.src:841:21: "invalid use of \\.\\.\\."
check_test.go:283: testdata/builtins.src:847:20: "used as value"
check_test.go:283: testdata/builtins.src:849:24: "too many arguments"
check_test.go:228: testdata/conversions.src:9:8: no error expected: "could not import unsafe (Config.Importer not installed)"
check_test.go:228: testdata/conversions.src:92:14: no error expected: "cannot convert x (variable of type T) to uintptr"
check_test.go:228: testdata/issues.src:7:8: no error expected: "could not import fmt (Config.Importer not installed)"
check_test.go:280: --- issues: 1 source positions with expected (but not reported) errors:
check_test.go:283: testdata/issues.src:87:3: "Nosuchtype not declared by package fmt"
--- FAIL: TestEvalPos (0.01s)
eval_test.go:167: p:3:10: could not import fmt (Config.Importer not installed)
--- FAIL: TestIssue13898 (0.01s)
issues_test.go:272: 4:8: could not import go/types (Config.Importer not installed)
--- FAIL: TestResolveIdents (0.02s)
/Users/Dmitri/test.246747009:1412
throw new Error(msg);
^
Error: interface conversion: interface is nil, not types.ImporterFrom
at $callDeferred (/Users/Dmitri/test.246747009:1412:17)
at $panic (/Users/Dmitri/test.246747009:1451:3)
at $b (/testing/testing.go:711:5)
at $callDeferred (/Users/Dmitri/test.246747009:1424:23)
at $panic (/Users/Dmitri/test.246747009:1451:3)
at Object.$packages.go/types.Checker.ptr.handleBailout (/go/types/check.go:225:4)
at f (/Users/Dmitri/test.246747009:53:21)
at $callDeferred (/Users/Dmitri/test.246747009:1424:23)
at $panic (/Users/Dmitri/test.246747009:1451:3)
at $assertType (/Users/Dmitri/test.246747009:1340:5)
at Object.$packages.go/types_test.resolveTestImporter.ptr.ImportFrom (/Users/Dmitri/test.246747009:95667:19)
at Object.$packages.go/types.Checker.ptr.importPackage (/go/types/resolver.go:150:5)
at Object.$packages.go/types.Checker.ptr.collectObjects (/go/types/resolver.go:249:8)
at Object.$packages.go/types.Checker.ptr.checkFiles (/go/types/check.go:237:3)
at Object.$packages.go/types.Checker.ptr.Files (/go/types/check.go:230:57)
at Object.$packages.go/types.Config.ptr.Check (/go/types/api.go:351:3)
at TestResolveIdents (/go/types/resolver_test.go:136:3)
at tRunner (/testing/testing.go:746:3)
at $goroutine (/Users/Dmitri/test.246747009:1471:19)
at $runScheduled (/Users/Dmitri/test.246747009:1511:7)
at $schedule (/Users/Dmitri/test.246747009:1527:5)
at $go (/Users/Dmitri/test.246747009:1503:3)
at Object.<anonymous> (/Users/Dmitri/test.246747009:96947:1)
at Object.<anonymous> (/Users/Dmitri/test.246747009:96950:4)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:607:3
FAIL go/types 7.090s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment