@abaplint/core 2.120.79 → 2.120.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -415,28 +415,28 @@ BuiltIn.methods = {
415
415
  "ABS": {
416
416
  counter: BuiltIn.counter++,
417
417
  mandatory: {
418
- "val": new basic_1.FloatType(),
418
+ "val": new basic_1.NumericGenericType(),
419
419
  },
420
420
  return: basic_1.IntegerType.get(),
421
421
  },
422
422
  "ACOS": {
423
423
  counter: BuiltIn.counter++,
424
424
  mandatory: {
425
- "val": new basic_1.FloatType(),
425
+ "val": new basic_1.NumericGenericType(),
426
426
  },
427
427
  return: new basic_1.FloatType(),
428
428
  },
429
429
  "ASIN": {
430
430
  counter: BuiltIn.counter++,
431
431
  mandatory: {
432
- "val": new basic_1.FloatType(),
432
+ "val": new basic_1.NumericGenericType(),
433
433
  },
434
434
  return: new basic_1.FloatType(),
435
435
  },
436
436
  "ATAN": {
437
437
  counter: BuiltIn.counter++,
438
438
  mandatory: {
439
- "val": new basic_1.FloatType(),
439
+ "val": new basic_1.NumericGenericType(),
440
440
  },
441
441
  return: new basic_1.FloatType(),
442
442
  },
@@ -470,7 +470,7 @@ BuiltIn.methods = {
470
470
  "CEIL": {
471
471
  counter: BuiltIn.counter++,
472
472
  mandatory: {
473
- "val": new basic_1.FloatType(),
473
+ "val": new basic_1.NumericGenericType(),
474
474
  },
475
475
  return: basic_1.IntegerType.get(),
476
476
  },
@@ -607,14 +607,14 @@ BuiltIn.methods = {
607
607
  "COS": {
608
608
  counter: BuiltIn.counter++,
609
609
  mandatory: {
610
- "val": new basic_1.FloatType(),
610
+ "val": new basic_1.NumericGenericType(),
611
611
  },
612
612
  return: new basic_1.FloatType(),
613
613
  },
614
614
  "COSH": {
615
615
  counter: BuiltIn.counter++,
616
616
  mandatory: {
617
- "val": new basic_1.FloatType(),
617
+ "val": new basic_1.NumericGenericType(),
618
618
  },
619
619
  return: new basic_1.FloatType(),
620
620
  },
@@ -694,7 +694,7 @@ BuiltIn.methods = {
694
694
  "EXP": {
695
695
  counter: BuiltIn.counter++,
696
696
  mandatory: {
697
- "val": new basic_1.FloatType(),
697
+ "val": new basic_1.NumericGenericType(),
698
698
  },
699
699
  return: new basic_1.FloatType(),
700
700
  },
@@ -763,14 +763,14 @@ BuiltIn.methods = {
763
763
  "FLOOR": {
764
764
  counter: BuiltIn.counter++,
765
765
  mandatory: {
766
- "val": new basic_1.FloatType(),
766
+ "val": new basic_1.NumericGenericType(),
767
767
  },
768
768
  return: basic_1.IntegerType.get(),
769
769
  },
770
770
  "FRAC": {
771
771
  counter: BuiltIn.counter++,
772
772
  mandatory: {
773
- "val": new basic_1.FloatType(),
773
+ "val": new basic_1.NumericGenericType(),
774
774
  },
775
775
  return: basic_1.IntegerType.get(),
776
776
  },
@@ -802,8 +802,8 @@ BuiltIn.methods = {
802
802
  "IPOW": {
803
803
  counter: BuiltIn.counter++,
804
804
  mandatory: {
805
- "base": new basic_1.FloatType(),
806
- "exp": new basic_1.FloatType(),
805
+ "base": new basic_1.NumericGenericType(),
806
+ "exp": new basic_1.NumericGenericType(),
807
807
  },
808
808
  return: basic_1.IntegerType.get(),
809
809
  release: version_1.Release.v740sp02,
@@ -835,14 +835,14 @@ BuiltIn.methods = {
835
835
  "LOG": {
836
836
  counter: BuiltIn.counter++,
837
837
  mandatory: {
838
- "val": new basic_1.FloatType(),
838
+ "val": new basic_1.NumericGenericType(),
839
839
  },
840
840
  return: new basic_1.FloatType(),
841
841
  },
842
842
  "LOG10": {
843
843
  counter: BuiltIn.counter++,
844
844
  mandatory: {
845
- "val": new basic_1.FloatType(),
845
+ "val": new basic_1.NumericGenericType(),
846
846
  },
847
847
  return: new basic_1.FloatType(),
848
848
  },
@@ -948,7 +948,7 @@ BuiltIn.methods = {
948
948
  "RESCALE": {
949
949
  counter: BuiltIn.counter++,
950
950
  mandatory: {
951
- "val": new basic_1.FloatType(),
951
+ "val": new basic_1.NumericGenericType(),
952
952
  },
953
953
  optional: {
954
954
  "dec": basic_1.IntegerType.get(),
@@ -969,7 +969,7 @@ BuiltIn.methods = {
969
969
  "ROUND": {
970
970
  counter: BuiltIn.counter++,
971
971
  mandatory: {
972
- "val": new basic_1.FloatType(),
972
+ "val": new basic_1.NumericGenericType(),
973
973
  },
974
974
  optional: {
975
975
  "dec": basic_1.IntegerType.get(),
@@ -1021,28 +1021,28 @@ BuiltIn.methods = {
1021
1021
  "SIGN": {
1022
1022
  counter: BuiltIn.counter++,
1023
1023
  mandatory: {
1024
- "val": new basic_1.FloatType(),
1024
+ "val": new basic_1.NumericGenericType(),
1025
1025
  },
1026
1026
  return: basic_1.IntegerType.get(),
1027
1027
  },
1028
1028
  "SIN": {
1029
1029
  counter: BuiltIn.counter++,
1030
1030
  mandatory: {
1031
- "val": new basic_1.FloatType(),
1031
+ "val": new basic_1.NumericGenericType(),
1032
1032
  },
1033
1033
  return: new basic_1.FloatType(),
1034
1034
  },
1035
1035
  "SINH": {
1036
1036
  counter: BuiltIn.counter++,
1037
1037
  mandatory: {
1038
- "val": new basic_1.FloatType(),
1038
+ "val": new basic_1.NumericGenericType(),
1039
1039
  },
1040
1040
  return: new basic_1.FloatType(),
1041
1041
  },
1042
1042
  "SQRT": {
1043
1043
  counter: BuiltIn.counter++,
1044
1044
  mandatory: {
1045
- "val": new basic_1.FloatType(),
1045
+ "val": new basic_1.NumericGenericType(),
1046
1046
  },
1047
1047
  return: new basic_1.FloatType(),
1048
1048
  },
@@ -1132,14 +1132,14 @@ BuiltIn.methods = {
1132
1132
  "TAN": {
1133
1133
  counter: BuiltIn.counter++,
1134
1134
  mandatory: {
1135
- "val": new basic_1.FloatType(),
1135
+ "val": new basic_1.NumericGenericType(),
1136
1136
  },
1137
1137
  return: new basic_1.FloatType(),
1138
1138
  },
1139
1139
  "TANH": {
1140
1140
  counter: BuiltIn.counter++,
1141
1141
  mandatory: {
1142
- "val": new basic_1.FloatType(),
1142
+ "val": new basic_1.NumericGenericType(),
1143
1143
  },
1144
1144
  return: new basic_1.FloatType(),
1145
1145
  },
@@ -1183,7 +1183,7 @@ BuiltIn.methods = {
1183
1183
  "TRUNC": {
1184
1184
  counter: BuiltIn.counter++,
1185
1185
  mandatory: {
1186
- "val": new basic_1.FloatType(),
1186
+ "val": new basic_1.NumericGenericType(),
1187
1187
  },
1188
1188
  return: basic_1.IntegerType.get(),
1189
1189
  },
@@ -512,7 +512,9 @@ class TypeUtils {
512
512
  return false;
513
513
  }
514
514
  else if (source instanceof basic_1.Integer8Type) {
515
- if (target instanceof basic_1.IntegerType || target instanceof basic_1.StringType) {
515
+ if (target instanceof basic_1.IntegerType
516
+ || target instanceof basic_1.StringType
517
+ || target instanceof basic_1.FloatType) {
516
518
  return false;
517
519
  }
518
520
  }
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.79";
78
+ return "2.120.80";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.79",
3
+ "version": "2.120.80",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",