@@ -278,7 +278,7 @@ fun test2() {
278278}
279279------------------------------------------------------------------------
280280References: [3:8, 4:14, 9:8, 10:14]
281- Scope: GlobalSearchScope
281+ Scope: GlobalSearchScope{test.tolk}
282282
283283========================================================================
284284Function references
@@ -292,7 +292,7 @@ fun test2() {
292292}
293293------------------------------------------------------------------------
294294References: [3:4, 4:4, 5:4]
295- Scope: GlobalSearchScope
295+ Scope: GlobalSearchScope{test.tolk}
296296
297297========================================================================
298298Static method references
@@ -306,7 +306,7 @@ fun test2() {
306306}
307307------------------------------------------------------------------------
308308References: [5:8]
309- Scope: GlobalSearchScope
309+ Scope: GlobalSearchScope{test.tolk}
310310
311311========================================================================
312312Instance method references
@@ -321,7 +321,7 @@ fun test2() {
321321}
322322------------------------------------------------------------------------
323323References: [6:8]
324- Scope: GlobalSearchScope
324+ Scope: GlobalSearchScope{test.tolk}
325325
326326========================================================================
327327Instance method references via alias
@@ -338,7 +338,7 @@ fun test2() {
338338}
339339------------------------------------------------------------------------
340340References: [8:8]
341- Scope: GlobalSearchScope
341+ Scope: GlobalSearchScope{test.tolk}
342342
343343========================================================================
344344Constant references
@@ -352,7 +352,7 @@ fun test2() {
352352}
353353------------------------------------------------------------------------
354354References: [3:8, 4:14]
355- Scope: GlobalSearchScope
355+ Scope: GlobalSearchScope{test.tolk}
356356
357357========================================================================
358358Type alias references
@@ -366,7 +366,7 @@ struct Foo {
366366fun test2(a: Int): Int {}
367367------------------------------------------------------------------------
368368References: [3:11, 6:13, 6:19]
369- Scope: GlobalSearchScope
369+ Scope: GlobalSearchScope{test.tolk}
370370
371371========================================================================
372372Type alias references from usage
@@ -380,7 +380,7 @@ struct Foo {
380380fun test2(a: <caret>Int): Int {}
381381------------------------------------------------------------------------
382382References: [3:11, 6:13, 6:19]
383- Scope: GlobalSearchScope
383+ Scope: GlobalSearchScope{test.tolk}
384384
385385========================================================================
386386Struct references
@@ -395,7 +395,7 @@ fun test2(a: Foo): Foo {
395395}
396396------------------------------------------------------------------------
397397References: [4:13, 4:19, 5:13, 6:14]
398- Scope: GlobalSearchScope
398+ Scope: GlobalSearchScope{test.tolk}
399399
400400========================================================================
401401Struct keyword references
@@ -421,7 +421,7 @@ fun test() {
421421}
422422------------------------------------------------------------------------
423423References: [3:4]
424- Scope: GlobalSearchScope
424+ Scope: GlobalSearchScope{test.tolk}
425425
426426========================================================================
427427Do while references
@@ -437,3 +437,24 @@ Scope: LocalSearchScope:
437437do {
438438 var a = 10;
439439 } while (a)
440+
441+ ========================================================================
442+ Struct references with generic type
443+ ========================================================================
444+ struct <caret>Config {}
445+
446+ struct Storage {
447+ config: Cell<Config>
448+ }
449+
450+ fun Storage.load() {
451+ return Storage.fromCell(contract.getData())
452+ }
453+
454+ fun name() {
455+ var st = Storage.load();
456+ val config = st.config.load();
457+ }
458+ ------------------------------------------------------------------------
459+ References: [3:15]
460+ Scope: GlobalSearchScope{test.tolk}
0 commit comments