mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: map[string]pointer, ?pointer, fix []pointer
This commit is contained in:
committed by
Alexander Medvednikov
parent
b76227b781
commit
28ecfb231d
@@ -679,7 +679,7 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool {
|
||||
return true
|
||||
}
|
||||
// Expected type "Option_os__File", got "os__File"
|
||||
if expected.starts_with('Option_') && expected.ends_with(got) {
|
||||
if expected.starts_with('Option_') && expected.ends_with(stringify_pointer(got)) {
|
||||
return true
|
||||
}
|
||||
// NsColor* return 0
|
||||
|
||||
Reference in New Issue
Block a user