mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: fix module alias resolution
This commit is contained in:

committed by
Alexander Medvednikov

parent
0a93d3b714
commit
20f6cdc53a
@@ -1,6 +1,6 @@
|
||||
module main
|
||||
|
||||
import gg2 // as gg
|
||||
import gg2 as gg
|
||||
import gx
|
||||
|
||||
const (
|
||||
@@ -10,12 +10,12 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg2.GG
|
||||
gg &gg.GG
|
||||
}
|
||||
|
||||
fn main() {
|
||||
mut app := &App{}
|
||||
app.gg = gg2.new_context({
|
||||
app.gg = gg.new_context({
|
||||
bg_color: gx.white
|
||||
width: win_width
|
||||
height: win_height
|
||||
|
Reference in New Issue
Block a user