1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: fix error of generic struct_init using module (fix #12893) (#12935)

This commit is contained in:
yuyi 2021-12-23 01:11:09 +08:00 committed by GitHub
parent 86719c5de9
commit 1028f0b59e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 8 deletions

View File

@ -0,0 +1,8 @@
import v.fmt.tests.obj
struct GenericStruct<A, B> {
}
fn main() {
_ := GenericStruct<obj.Test, obj.Test>{}
}

View File

@ -0,0 +1,3 @@
module obj
pub struct Test {}