Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 25, 2023
1 parent 2725cc7 commit be9e841
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/src/code_generator/typealias.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,15 @@ class Typealias extends BindingType {
}

@override
String getDartType(Writer w) => _dartAliasName ?? type.getDartType(w);
String getDartType(Writer w) {
if (_dartAliasName != null) {
return _dartAliasName!;
} else if (type.sameDartAndCType) {
return getFfiDartType(w);
} else {
return type.getDartType(w);
}
}

@override
bool get sameFfiDartAndCType => type.sameFfiDartAndCType;
Expand Down

0 comments on commit be9e841

Please sign in to comment.