You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
475 B
13 lines
475 B
// errorcheck
|
|
|
|
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Make sure this doesn't crash the compiler.
|
|
// (This test should be part of the internal/syntax
|
|
// package, but we don't have a general test framework
|
|
// there yet, so put it here for now. See also #20800.)
|
|
|
|
package e
|
|
func([<-chan<-[func u){go // ERROR "unexpected u", ERROR "must be function call"
|