Skip to content

Commit

Permalink
Integer unboxableAs long
Browse files Browse the repository at this point in the history
  • Loading branch information
Informa-Tiger committed Jul 2, 2022
1 parent 0fbeaf2 commit dc08466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/compiler/types/boxedTypes/IntegerClass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Klass, UnboxableKlass, Visibility } from "../Class.js";
import { Method, Parameterlist, Attribute, Value, Type, PrimitiveType } from "../Types.js";
import { intPrimitiveType, stringPrimitiveType, doublePrimitiveType, floatPrimitiveType, booleanPrimitiveType } from "../PrimitiveTypes.js";
import { intPrimitiveType, stringPrimitiveType, doublePrimitiveType, floatPrimitiveType, booleanPrimitiveType, longPrimitiveType } from "../PrimitiveTypes.js";
import { RuntimeObject } from "../../../interpreter/RuntimeObject.js";


Expand All @@ -21,7 +21,7 @@ export class IntegerClass extends UnboxableKlass {

init() {

this.unboxableAs = [intPrimitiveType, floatPrimitiveType, doublePrimitiveType];
this.unboxableAs = [intPrimitiveType, floatPrimitiveType, doublePrimitiveType, longPrimitiveType];

this.addMethod(new Method("Integer", new Parameterlist([
{ identifier: "int-wert", type: intPrimitiveType, declaration: null, usagePositions: null, isFinal: true }
Expand Down

0 comments on commit dc08466

Please sign in to comment.