@@ -2687,8 +2687,54 @@ f54131 = F54131()
26872687
26882688 s = " f54131.x(kwa"
26892689 a, b, c = completions (s, lastindex (s), @__MODULE__ , false )
2690- @test_broken REPLCompletions. KeywordArgumentCompletion (" kwarg" ) in a
2691- @test (@elapsed completions (s, lastindex (s), @__MODULE__ , false )) < 1
2690+ @test REPLCompletions. KeywordArgumentCompletion (" kwarg" ) in a
2691+ @test (@elapsed completions (s, lastindex (s), @__MODULE__ , false )) < 100
2692+ end
2693+
2694+ @kwdef struct T59244
2695+ asdf = 1
2696+ qwer = 2
2697+ end
2698+ @kwdef struct S59244{T}
2699+ asdf:: T = 1
2700+ qwer:: T = 2
2701+ end
2702+ @testset " kwarg completion of types" begin
2703+ s = " T59244(as"
2704+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2705+ @test REPLCompletions. KeywordArgumentCompletion (" asdf" ) in a
2706+
2707+ s = " T59244(; qw"
2708+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2709+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) in a
2710+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) == only (a)
2711+
2712+ s = " S59244(as"
2713+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2714+ @test REPLCompletions. KeywordArgumentCompletion (" asdf" ) in a
2715+
2716+ s = " S59244(; qw"
2717+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2718+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) in a
2719+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) == only (a)
2720+
2721+ s = " S59244{Int}(as"
2722+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2723+ @test REPLCompletions. KeywordArgumentCompletion (" asdf" ) in a
2724+
2725+ s = " S59244{Int}(; qw"
2726+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2727+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) in a
2728+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) == only (a)
2729+
2730+ s = " S59244{Any}(as"
2731+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2732+ @test REPLCompletions. KeywordArgumentCompletion (" asdf" ) in a
2733+
2734+ s = " S59244{Any}(; qw"
2735+ a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2736+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) in a
2737+ @test REPLCompletions. KeywordArgumentCompletion (" qwer" ) == only (a)
26922738end
26932739
26942740# Completion inside string interpolation
0 commit comments