From 4bcbcf7ae74cae1dd3f3c79bdfa9eee069da91da Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Thu, 23 Feb 2023 11:29:35 +0100 Subject: [PATCH] Nan is a separate builtin type --- .../src/main/java/org/enso/interpreter/runtime/type/Types.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/runtime/src/main/java/org/enso/interpreter/runtime/type/Types.java b/engine/runtime/src/main/java/org/enso/interpreter/runtime/type/Types.java index eff4aba698322..629f3b2dc5894 100644 --- a/engine/runtime/src/main/java/org/enso/interpreter/runtime/type/Types.java +++ b/engine/runtime/src/main/java/org/enso/interpreter/runtime/type/Types.java @@ -257,7 +257,7 @@ private static TypeGraph buildTypeHierarchy() { graph.insert(ConstantsGen.ARRAY, ConstantsGen.ANY); graph.insert(ConstantsGen.BOOLEAN, ConstantsGen.ANY); graph.insert(ConstantsGen.DECIMAL, ConstantsGen.NUMBER); - graph.insert(ConstantsGen.NAN, ConstantsGen.NUMBER); + graph.insert(ConstantsGen.NAN, ConstantsGen.DECIMAL); graph.insert(ConstantsGen.ERROR, ConstantsGen.ANY); graph.insert(ConstantsGen.FUNCTION, ConstantsGen.ANY); graph.insert(ConstantsGen.INTEGER, ConstantsGen.NUMBER);