mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 10:16:37 +00:00
use gc interface directly, document
This commit is contained in:
@ -212,7 +212,9 @@ export class Type {
|
||||
var targetFunction: Signature | null;
|
||||
if (this.is(TypeFlags.REFERENCE)) {
|
||||
if (target.is(TypeFlags.REFERENCE)) {
|
||||
if (!this.is(TypeFlags.NULLABLE) || target.is(TypeFlags.NULLABLE)) {
|
||||
// FIXME: turned out resolveType didn't handle nullability properly, and fixing it there
|
||||
// leads to this check failing all over the place due to not yet implemented null states.
|
||||
// if (!this.is(TypeFlags.NULLABLE) || target.is(TypeFlags.NULLABLE)) {
|
||||
if (currentClass = this.classReference) {
|
||||
if (targetClass = target.classReference) {
|
||||
return currentClass.isAssignableTo(targetClass);
|
||||
@ -222,7 +224,7 @@ export class Type {
|
||||
return currentFunction.isAssignableTo(targetFunction);
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
} else if (!target.is(TypeFlags.REFERENCE)) {
|
||||
if (this.is(TypeFlags.INTEGER)) {
|
||||
|
Reference in New Issue
Block a user