Skip to content

Commit

Permalink
Fix crash when calling getResolutionFunction on a built-in NetType
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Mar 10, 2024
1 parent 50fe058 commit 402ea5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/ast/types/NetType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ using namespace syntax;
NetType::NetType(NetKind netKind, std::string_view name, const Type& dataType) :
Symbol(SymbolKind::NetType, name, SourceLocation()), declaredType(*this), netKind(netKind) {
declaredType.setType(dataType);
resolver = nullptr;
}

NetType::NetType(std::string_view name, SourceLocation location) :
Expand Down

0 comments on commit 402ea5e

Please sign in to comment.