Skip to content

Commit

Permalink
What happens when we claim that Type isn't Atom?
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Mar 9, 2023
1 parent 5e51b91 commit bd9916e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.enso.interpreter.dsl.AcceptsError;
import org.enso.interpreter.dsl.BuiltinMethod;
import org.enso.interpreter.runtime.callable.atom.Atom;
import org.enso.interpreter.runtime.data.Type;

@BuiltinMethod(
type = "Meta",
Expand All @@ -13,6 +12,6 @@
autoRegister = false)
public class IsAtomNode extends Node {
boolean execute(@AcceptsError Object value) {
return value instanceof Atom || value instanceof Type;
return value instanceof Atom;
}
}

0 comments on commit bd9916e

Please sign in to comment.