blob: f94684befd82f4eb97fd218294fd5a74c365a2b0 [file] [log] [blame]
package runtime
// An errorString represents a runtime error described by a single string.
type errorString string
func (e errorString) RuntimeError() {}
func (e errorString) Error() string {
return "runtime error: " + string(e)
}
func Breakpoint()
type Error interface {
error
RuntimeError()
}
func GC()