Commit 60eceeb9 authored by Hugo Moreau's avatar Hugo Moreau
Browse files

pass triggering errors for use of panics

parent e23f4210
package main
func main() {
panic("Panic test.")
}
......@@ -31,6 +31,11 @@ func (t *TypeChecker) Pre(meta *Meta, v *Visitor) bool {
}
}
}
case *ast.Ident:
if node.Name == "panic" {
fmt.Println("Panics are not supported.")
os.Exit(1)
}
case *ast.ChanType:
fmt.Println("Channels are not supported.")
os.Exit(1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment