2015-11-19 16:11:09 -08:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
2015-11-19 16:11:09 -08:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func f(int, int) {
|
|
|
|
switch x {
|
|
|
|
case 1:
|
2022-03-30 13:23:37 -07:00
|
|
|
f(1, g() // ERROR "expecting \)|possibly missing comma or \)"
|
2015-11-19 16:11:09 -08:00
|
|
|
case 2:
|
|
|
|
f()
|
|
|
|
case 3:
|
2022-03-30 13:23:37 -07:00
|
|
|
f(1, g() // ERROR "expecting \)|possibly missing comma or \)"
|
2015-11-19 16:11:09 -08:00
|
|
|
}
|
|
|
|
}
|