Skip to content

Commit cb1e370

Browse files
committed
fix(kotlin): give companion-object functions graph nodes as class methods
A function declared in a Kotlin `companion object` had no graph node: the companion minted no definition, so every caller of a class's factory or parser was lost. Companion functions are now methods of the enclosing class (`Outer.fn`), the name callers write (`Outer.fn()`, a bare `fn()` inside the class). The definition walk, the call-scope walk and the Kotlin LSP all scope them under the class, so the LSP binds `Outer.fn()` and bare calls and calls made inside the companion source from the function itself. A named companion is flattened the same way. Two guards keep the new nodes from collecting wrong callers: - the Kotlin LSP no longer takes a constructor call `Outer(x)` made inside the class for a this-dispatch to the secondary constructor; - the registry applies its receiver-chain guard on the import-filtered multi-candidate path too, as it already did on the unique-name and no-import paths: `Uri.parse(s)` no longer binds a project `X.parse`. Tests: kotlin_typed_calls gains a companion fixture (anonymous and named companion, cross-file, bare and in-companion calls, two same-named companion functions) on both resolvers; doc_mentions_jvm expectations follow the companion members' new node names. Signed-off-by: chidev <[email protected]>
1 parent cf70a88 commit cb1e370

8 files changed

Lines changed: 170 additions & 21 deletions

File tree

‎internal/cbm/extract_defs.c‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9519,6 +9519,16 @@ static void extract_class_methods(CBMExtractCtx *ctx, TSNode class_node, const c
95199519
continue;
95209520
}
95219521

9522+
/* Kotlin: a `companion object`'s functions are called as members of
9523+
* the class (`Outer.parse(x)`, a bare `parse(x)` inside it), so they
9524+
* are the class's methods: `Outer.parse`. The Kotlin LSP registers
9525+
* them under the class too. Before, the companion got no def and its
9526+
* functions got no node at all. */
9527+
if (cbm_kotlin_is_companion(ctx->language, child)) {
9528+
extract_class_methods(ctx, child, class_qn, spec);
9529+
continue;
9530+
}
9531+
95229532
// Squirrel wraps each class member in a member_declaration node; the
95239533
// method is the inner function_declaration. Peek through the wrapper.
95249534
if (ctx->language == CBM_LANG_SQUIRREL &&
@@ -12969,6 +12979,11 @@ static const char *compute_class_qn(CBMExtractCtx *ctx, TSNode node, const char
1296912979
if (ts_node_is_null(name_node) && ctx->language == CBM_LANG_OBJECTSCRIPT_UDL) {
1297012980
name_node = cbm_find_child_by_kind(node, "class_name");
1297112981
}
12982+
/* Kotlin: a `companion object` (named or not) adds no QN segment; its
12983+
* members are the enclosing class's (see cbm_kotlin_is_companion). */
12984+
if (cbm_kotlin_is_companion(ctx->language, node)) {
12985+
return saved_enclosing;
12986+
}
1297212987
if (!ts_node_is_null(name_node)) {
1297312988
char *cname = cbm_node_text(ctx->arena, name_node, ctx->source);
1297412989
if (cname && cname[0]) {
@@ -13720,6 +13735,15 @@ static void walk_defs(CBMExtractCtx *ctx, TSNode root, const CBMLangSpec *spec,
1372013735
continue;
1372113736
}
1372213737

13738+
/* Kotlin: a companion object's functions were emitted as methods of
13739+
* the enclosing class (extract_class_methods). It mints no def of its
13740+
* own; only classes nested in its body are walked, under the
13741+
* enclosing class. */
13742+
if (cbm_kotlin_is_companion(ctx->language, node)) {
13743+
push_class_body_children(node, spec, &s, frame.enclosing_class_qn, ctx);
13744+
continue;
13745+
}
13746+
1372313747
if (cbm_kind_in_set(node, spec->class_node_types)) {
1372413748
extract_class_def(ctx, node, spec);
1372513749
const char *new_enclosing = compute_class_qn(ctx, node, frame.enclosing_class_qn);

‎internal/cbm/extract_unified.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,12 @@ static const char *compute_class_qn(CBMExtractCtx *ctx, TSNode node, const WalkS
11901190
if (ctx->language == CBM_LANG_NIX) {
11911191
return cbm_nix_binding_scope_qn(ctx, node, state ? state->enclosing_class_qn : NULL);
11921192
}
1193+
/* Kotlin: a `companion object` (named or not) adds no scope segment: its
1194+
* functions are minted as methods of the enclosing class (extract_defs.c
1195+
* extract_class_methods), so their calls source to `Outer.fn`. */
1196+
if (cbm_kotlin_is_companion(ctx->language, node)) {
1197+
return state ? state->enclosing_class_qn : NULL;
1198+
}
11931199
TSNode name_node = ts_node_child_by_field_name(node, TS_FIELD("name"));
11941200
/* Newer tree-sitter-kotlin: class/object name is a type_identifier child. */
11951201
if (ts_node_is_null(name_node) && ctx->language == CBM_LANG_KOTLIN) {

‎internal/cbm/helpers.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ bool cbm_kind_in_set(TSNode node, const char **types) {
590590
return kind_in_set_strcmp(node, (const char *const *)types);
591591
}
592592

593+
bool cbm_kotlin_is_companion(CBMLanguage lang, TSNode node) {
594+
return lang == CBM_LANG_KOTLIN && !ts_node_is_null(node) &&
595+
strcmp(ts_node_type(node), "companion_object") == 0;
596+
}
597+
593598
bool cbm_is_namespace_scope_kind(CBMLanguage lang, const char *kind) {
594599
if (!kind) {
595600
return false;

‎internal/cbm/helpers.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ bool cbm_kind_in_set(TSNode node, const char **types);
247247
* walks so TS/TSX scope attribution cannot drift. */
248248
bool cbm_is_namespace_scope_kind(CBMLanguage lang, const char *kind);
249249

250+
/* True for a Kotlin `companion object` node. Its functions are members of
251+
* the enclosing class (`Outer.fn`, the name callers use); definition and
252+
* unified walks and the Kotlin LSP scope them under that class. */
253+
bool cbm_kotlin_is_companion(CBMLanguage lang, TSNode node);
254+
250255
// Free the calling thread's cbm_kind_in_set bitset cache (call at thread/process
251256
// teardown so the thread-local cache is not reported as a leak).
252257
void cbm_kind_in_set_free_cache(void);

‎internal/cbm/lsp/kotlin_lsp.c‎

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,11 +2002,17 @@ static void kt_process_object_decl(KotlinLSPContext *ctx, TSNode node, bool is_c
20022002
if (!ts_node_is_null(body)) {
20032003
const char *prev_class = ctx->enclosing_class_qn;
20042004
const char *prev_companion = ctx->enclosing_companion_qn;
2005-
ctx->enclosing_class_qn = obj_qn;
2005+
/* A companion's functions are members of the enclosing class: the
2006+
* graph mints them as `Outer.fn` (extract_defs.c
2007+
* extract_class_methods), and `Outer.fn()` / a bare `fn()` inside the
2008+
* class resolve against Outer. */
2009+
const char *members_qn =
2010+
(is_companion && outer_class_qn && outer_class_qn[0]) ? outer_class_qn : obj_qn;
2011+
ctx->enclosing_class_qn = members_qn;
20062012
if (is_companion) {
20072013
ctx->enclosing_companion_qn = obj_qn;
20082014
}
2009-
kt_register_class_members(ctx, obj_qn, body, true);
2015+
kt_register_class_members(ctx, members_qn, body, true);
20102016
ctx->enclosing_class_qn = prev_class;
20112017
ctx->enclosing_companion_qn = prev_companion;
20122018
}
@@ -2109,7 +2115,11 @@ static void kt_register_class_members(KotlinLSPContext *ctx, const char *class_q
21092115
} else if (strcmp(kind, "object_declaration") == 0) {
21102116
/* Could be `companion object` or nested `object` */
21112117
char *otext = kt_node_text(ctx, c);
2112-
bool is_comp = otext && strstr(otext, "companion");
2118+
/* `companion` must be a modifier of THIS declaration (before its
2119+
* `object` keyword), not a word in its body. */
2120+
const char *comp_at = otext ? strstr(otext, "companion") : NULL;
2121+
const char *obj_at = otext ? strstr(otext, "object") : NULL;
2122+
bool is_comp = comp_at && obj_at && comp_at < obj_at;
21132123
const char *prev_class = ctx->enclosing_class_qn;
21142124
ctx->enclosing_class_qn = class_qn;
21152125
kt_process_object_decl(ctx, c, is_comp, class_qn);
@@ -3041,10 +3051,17 @@ static const CBMType *kt_eval_constructor_or_func_call(KotlinLSPContext *ctx, TS
30413051
/* A known non-invokable value yields to the member function: step 1. */
30423052
}
30433053

3054+
/* A call naming a registered class is a constructor call (step 2): a
3055+
* secondary constructor is registered as a same-named member of its class
3056+
* and must not be taken for a method by steps 1 / 1b. */
3057+
const char *ctor_cls = kotlin_resolve_class_name(ctx, callee_text);
3058+
bool is_ctor_call =
3059+
ctor_cls && ctx->registry && cbm_registry_lookup_type(ctx->registry, ctor_cls) != NULL;
3060+
30443061
/* 1. `this`-method dispatch: if we're inside a class method or DSL
30453062
* lambda, bare calls resolve against this_type's members first. This
30463063
* matches Kotlin's resolution order: implicit-receiver before global. */
3047-
if (ctx->this_type && !cbm_type_is_unknown(ctx->this_type)) {
3064+
if (ctx->this_type && !cbm_type_is_unknown(ctx->this_type) && !is_ctor_call) {
30483065
const char *this_qn = kt_type_qn_of(ctx->this_type);
30493066
if (this_qn) {
30503067
const CBMRegisteredFunc *rf = kotlin_lookup_method(ctx, this_qn, callee_text);
@@ -3069,9 +3086,6 @@ static const CBMType *kt_eval_constructor_or_func_call(KotlinLSPContext *ctx, TS
30693086
* against Repo only and fell to a name guess. A call naming a class is a
30703087
* constructor call, left to step 2 (a secondary constructor is registered
30713088
* as a same-named member and would otherwise be taken for a method). */
3072-
const char *ctor_cls = kotlin_resolve_class_name(ctx, callee_text);
3073-
bool is_ctor_call =
3074-
ctor_cls && ctx->registry && cbm_registry_lookup_type(ctx->registry, ctor_cls) != NULL;
30753089
if (ctx->enclosing_class_qn && !is_ctor_call) {
30763090
const char *this_qn = (ctx->this_type && !cbm_type_is_unknown(ctx->this_type))
30773091
? kt_type_qn_of(ctx->this_type)
@@ -4555,8 +4569,11 @@ static void kt_walk_top_level_for_resolution(KotlinLSPContext *ctx, TSNode root,
45554569
kt_walk_top_level_for_resolution(ctx, body, cls_qn);
45564570
ctx->enclosing_class_qn = prev_class;
45574571
} else if (strcmp(kind, "companion_object") == 0) {
4558-
const char *companion_qn = kt_join_dot(
4559-
ctx->arena, enclosing_class_qn ? enclosing_class_qn : ctx->package_qn, "Companion");
4572+
/* Companion functions are the enclosing class's members in the
4573+
* graph (`Outer.fn`), so their calls are walked under that QN. */
4574+
const char *companion_qn = enclosing_class_qn
4575+
? enclosing_class_qn
4576+
: kt_join_dot(ctx->arena, ctx->package_qn, "Companion");
45604577
TSNode body = kt_child_kind(c, "class_body");
45614578
kt_walk_top_level_for_resolution(ctx, body, companion_qn);
45624579
} else if (strcmp(kind, "property_declaration") == 0) {

‎src/pipeline/registry.c‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,18 +1985,26 @@ static cbm_resolution_t resolve_same_module(const cbm_registry_t *r, const char
19851985
return empty_result();
19861986
}
19871987

1988-
/* Strategy 4: multiple candidates with import filtering. */
1988+
static bool receiver_chain_admits(const char *callee_name, const char *candidate_qn);
1989+
1990+
/* Strategy 4: multiple candidates with import filtering. The receiver-chain
1991+
* guard (receiver_chain_admits) holds here as on the unique-name and
1992+
* no-import paths: `Uri.parse(s)` names a type none of whose segments is in
1993+
* a candidate's ancestry, so the import-distance pick must not hand it a
1994+
* project `Markdown.parse`. Before, a file with imports skipped the guard
1995+
* that the same call in a file without imports got. */
19891996
static cbm_resolution_t resolve_multi_with_imports(const cbm_registry_t *r, const qn_array_t *arr,
1990-
const char *module_qn, const char **import_vals,
1991-
int import_count) {
1997+
const char *callee_name, const char *module_qn,
1998+
const char **import_vals, int import_count) {
19921999
const char *filtered[CBM_SZ_256];
19932000
uint8_t filtered_test[CBM_SZ_256];
19942001
uint8_t filtered_lang[CBM_SZ_256];
19952002
const uint8_t *flags = qn_test_flags(arr);
19962003
const uint8_t *langs = qn_lang_flags(arr);
19972004
int fcount = 0;
19982005
for (int i = 0; i < arr->count && fcount < CBM_SZ_256; i++) {
1999-
if (is_import_reachable(arr->items[i], import_vals, import_count)) {
2006+
if (is_import_reachable(arr->items[i], import_vals, import_count) &&
2007+
receiver_chain_admits(callee_name, arr->items[i])) {
20002008
if (flags) {
20012009
filtered_test[fcount] = flags[i];
20022010
}
@@ -2022,7 +2030,7 @@ static cbm_resolution_t resolve_multi_with_imports(const cbm_registry_t *r, cons
20222030
/* No import-reachable — use all candidates with penalty */
20232031
const char *best = best_by_import_distance(r, (const char **)arr->items, qn_test_flags(arr),
20242032
qn_lang_flags(arr), arr->count, module_qn);
2025-
if (best) {
2033+
if (best && receiver_chain_admits(callee_name, best)) {
20262034
double conf = candidate_count_penalty(CONF_SUFFIX_MATCH * REG_HALF_PENALTY, arr->count);
20272035
return (cbm_resolution_t){best, "suffix_match", conf, arr->count};
20282036
}
@@ -2237,7 +2245,8 @@ static cbm_resolution_t resolve_name_candidates(const cbm_registry_t *r, const q
22372245

22382246
/* Strategy 4: multiple candidates */
22392247
if (import_vals && import_count > 0) {
2240-
return resolve_multi_with_imports(r, arr, module_qn, import_vals, import_count);
2248+
return resolve_multi_with_imports(r, arr, callee_name, module_qn, import_vals,
2249+
import_count);
22412250
}
22422251
const char *best = best_by_import_distance(r, (const char **)arr->items, qn_test_flags(arr),
22432252
qn_lang_flags(arr), arr->count, module_qn);

‎tests/test_doc_mentions_jvm.c‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,9 @@ TEST(doc_mentions_jvm_kotlin_families_and_reasons) {
11451145
ASSERT_EQ(jt_edge(db, widget, "far.Helper.Helper"), 1);
11461146
ASSERT_NOT_NULL(strstr(jt_props, "\"tier\":\"exact\""));
11471147
ASSERT_EQ(jt_edge(db, widget, "far.Helper.Helper.run"), 1);
1148-
/* a member of the companion object, named through its class */
1149-
ASSERT_EQ(jt_edge(db, widget, "k.Gadget.Factory.create"), 1);
1148+
/* a member of the companion object, named through its class: its node
1149+
* is the class's method */
1150+
ASSERT_EQ(jt_edge(db, widget, "k.Gadget.Gadget.create"), 1);
11501151
/* a type alias has a node of its own */
11511152
ASSERT_EQ(jt_edge(db, widget, "k.Gadget.Alias"), 1);
11521153
/* throws */
@@ -1331,7 +1332,7 @@ TEST(doc_mentions_jvm_kotlin_levels) {
13311332
0);
13321333
/* 3 */
13331334
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.K3.own"), 1);
1334-
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.Tools.make"), 1);
1335+
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.K3.make"), 1); /* companion member */
13351336
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.K3Base.inherited"), 1);
13361337
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.K3.shared"), 1);
13371338
ASSERT_EQ(jt_edge(db, "kl.K3.K3.m", "kl.K3.K3Base.shared"), 0);
@@ -1357,7 +1358,7 @@ TEST(doc_mentions_jvm_kotlin_levels) {
13571358
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "far.Thing.Thing"), 1);
13581359
ASSERT_NOT_NULL(strstr(jt_props, "\"tier\":\"exact\""));
13591360
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "far.Funs.topFun"), 1);
1360-
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "kl.K3.Tools.make"), 1);
1361+
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "kl.K3.K3.make"), 1);
13611362
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "kl.K3.K3Base.inherited"), 1);
13621363
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "kl.K3.K3.shared"), 1);
13631364
ASSERT_EQ(jt_edge(db, "kl.K9.K9", "kl.K3.K3Base.shared"), 0);
@@ -1785,7 +1786,7 @@ TEST(doc_mentions_jvm_kotlin_open_supertypes) {
17851786
/* the companion object's supertypes count: its members are in the
17861787
* class's scope. What the companion declares itself binds */
17871788
ASSERT_EQ(jt_rows(db, k4, "helper", "external"), 1);
1788-
ASSERT_EQ(jt_edge(db, "gk.K4.Locked.m", "gk.K4.Lock.close"), 1);
1789+
ASSERT_EQ(jt_edge(db, "gk.K4.Locked.m", "gk.K4.Locked.close"), 1);
17891790
ASSERT_EQ(dm_mentions_from(db, "gk.K4.Locked.m"), 1);
17901791
jt_end(&r);
17911792
PASS();

‎tests/test_kotlin_typed_calls.c‎

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ static int ktc_check_venue(const char *dir, const char *venue, bool single_threa
334334
/* The enclosing class's member inside a lambda with a typed receiver. */
335335
ok &= ktc_expect_lsp(db, venue, "Svc.viaLet", "ping", "Svc.ping");
336336
ok &= ktc_expect_lsp(db, venue, "Svc.viaRun", "ping", "Svc.ping");
337-
ok &= ktc_expect_lsp(db, venue, "Ledger.kt.__file__", "Ledger", "Ledger.Ledger.Ledger");
337+
/* The companion function is a node of its own now (Ledger.of), so the
338+
* call sources from it, not from the file. */
339+
ok &= ktc_expect_lsp(db, venue, "Ledger.of", "Ledger", "Ledger.Ledger.Ledger");
338340
sqlite3_close(db);
339341
return ok;
340342
}
@@ -354,6 +356,86 @@ TEST(kotlin_property_receiver_binds_declared_type_both_venues) {
354356
PASS();
355357
}
356358

359+
/* Companion-object functions are members of the enclosing class: each gets a
360+
* Method node `Outer.fn`, and `Outer.fn()` from another file, a bare `fn()`
361+
* inside the class and a call inside the companion all bind to it. Before,
362+
* the companion minted no def, so its functions had no node and lost every
363+
* caller. Two classes each declare a companion `parse`, so a binding by
364+
* name or by a `Companion.parse` tail would pick the wrong one or none. */
365+
static const char *const KTCO_FILES[][2] = {
366+
{"src/main/kotlin/com/acme/m/Recipe.kt",
367+
"package com.acme.m\n\nclass Recipe(val text: String) {\n"
368+
" fun render(): String = parse(text).text\n\n"
369+
" companion object {\n"
370+
" fun parse(s: String): Recipe = Recipe(clean(s))\n\n"
371+
" private fun clean(s: String): String = s.trim()\n }\n}\n"},
372+
{"src/main/kotlin/com/acme/o/Other.kt",
373+
"package com.acme.o\n\nclass Other(val n: Int) {\n"
374+
" companion object {\n fun parse(s: String): Other = Other(s.length)\n }\n}\n"},
375+
{"src/main/kotlin/com/acme/f/Factory.kt",
376+
"package com.acme.f\n\nclass Factory {\n"
377+
" companion object Maker {\n fun build(): Factory = Factory()\n }\n}\n"},
378+
{"src/main/kotlin/com/acme/d/Doc.kt",
379+
"package com.acme.d\n\nimport com.acme.f.Factory\nimport com.acme.m.Recipe\n\n"
380+
"class Doc {\n fun show(): Recipe = Recipe.parse(\"x\")\n\n"
381+
" fun make(): Factory = Factory.build()\n}\n"},
382+
};
383+
384+
static int ktco_check_venue(const char *dir, const char *venue, bool single_thread) {
385+
char db_path[512];
386+
char name[64];
387+
snprintf(name, sizeof(name), "ktco-%s.db", venue);
388+
if (ktc_index(dir, name, single_thread, db_path, sizeof(db_path)) != 0) {
389+
printf("\n [%s] index failed\n", venue);
390+
return 0;
391+
}
392+
sqlite3 *db = NULL;
393+
if (sqlite3_open_v2(db_path, &db, SQLITE_OPEN_READONLY, NULL) != SQLITE_OK) {
394+
if (db) {
395+
sqlite3_close(db);
396+
}
397+
return 0;
398+
}
399+
int ok = 1;
400+
/* Cross-file `Outer.fn()`, anonymous and named companion. */
401+
ok &= ktc_expect_lsp(db, venue, "Doc.show", "parse", "Recipe.Recipe.parse");
402+
ok &= ktc_expect_lsp(db, venue, "Doc.make", "build", "Factory.Factory.build");
403+
/* Bare call from an instance method of the class. */
404+
ok &= ktc_expect_lsp(db, venue, "Recipe.render", "parse", "Recipe.Recipe.parse");
405+
/* A call inside the companion sources from the companion function. */
406+
ok &= ktc_expect_lsp(db, venue, "Recipe.parse", "clean", "Recipe.Recipe.clean");
407+
sqlite3_close(db);
408+
return ok;
409+
}
410+
411+
TEST(kotlin_companion_functions_are_class_members_both_venues) {
412+
char *dir = th_mktempdir("cbm_kt_companion");
413+
ASSERT_NOT_NULL(dir);
414+
int wrote = 0;
415+
for (size_t i = 0; i < sizeof(KTCO_FILES) / sizeof(KTCO_FILES[0]); i++) {
416+
wrote |= th_write_file(TH_PATH(dir, KTCO_FILES[i][0]), KTCO_FILES[i][1]);
417+
}
418+
for (int i = 0; i < 55 && wrote == 0; i++) {
419+
char rel[96];
420+
char body[128];
421+
snprintf(rel, sizeof(rel), "src/main/kotlin/com/acme/pad/Pad%d.kt", i);
422+
snprintf(body, sizeof(body), "package com.acme.pad\n\nclass Pad%d {\n fun v%d(): Int = %d\n}\n",
423+
i, i, i);
424+
wrote |= th_write_file(TH_PATH(dir, rel), body);
425+
}
426+
if (wrote != 0) {
427+
th_cleanup(dir);
428+
FAIL("fixture");
429+
}
430+
int seq = ktco_check_venue(dir, "seq", true);
431+
int par = ktco_check_venue(dir, "par", false);
432+
th_cleanup(dir);
433+
ASSERT_TRUE(seq);
434+
ASSERT_TRUE(par);
435+
PASS();
436+
}
437+
357438
SUITE(kotlin_typed_calls) {
358439
RUN_TEST(kotlin_property_receiver_binds_declared_type_both_venues);
440+
RUN_TEST(kotlin_companion_functions_are_class_members_both_venues);
359441
}

0 commit comments

Comments
 (0)