 b415402720
			
		
	
	
		b415402720
		
			
		
	
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Release a tag / release (push) Has been cancelled
				Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
				Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
				
		
			
				
	
	
		
			21 lines
		
	
	
		
			607 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			607 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //golangcitest:args -Easasalint
 | |
| package testdata
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| func getArgsLength(args ...interface{}) int {
 | |
| 	// this line will not report as error
 | |
| 	fmt.Println(args)
 | |
| 	return len(args)
 | |
| }
 | |
| 
 | |
| func checkArgsLength(args ...interface{}) int {
 | |
| 	return getArgsLength(args) // ERROR `pass \[\]any as any to func getArgsLength func\(args \.\.\.interface\{\}\)`
 | |
| }
 | |
| 
 | |
| func someCall() {
 | |
| 	var a = []interface{}{1, 2, 3}
 | |
| 	fmt.Println(checkArgsLength(a...) == getArgsLength(a)) // ERROR `pass \[\]any as any to func getArgsLength func\(args \.\.\.interface\{\}\)`
 | |
| 	fmt.Println(checkArgsLength(a...) == getArgsLength(a...))
 | |
| }
 |