Javier
07/30/2023, 1:46 PMList<Int>context(List<String>, List<Int>)
fun foo() = this@ListWout Werkman
07/30/2023, 2:25 PMtypealias StringList = List<String>
context(StringList, List<Int>)
fun foo() = this@StringListI really miss a #context-receivers channelI agree that there is not a good source to find how to use context receivers idiomatically. I'd say that posting here is a good start for sharing your thoughts. If you want to influence the evolution of the language, your best chance is at all times to share good use cases to support your proposal/concern.
Javier
07/30/2023, 2:43 PMthis@List<String>Javier
07/30/2023, 2:43 PMYoussef Shoaib [MOD]
07/30/2023, 7:35 PMcontext(A) fun <A> given(): A = this@A
context(List<String>, List<Int>) fun test() {
  val strs = given<List<String>>()
  val ints = given<List<Int>>()
}Youssef Shoaib [MOD]
07/30/2023, 7:40 PMfun main() = with(listOf("hello")) {
    with(listOf(42)){
        test()
    }
}
context(A) fun <A> given(): A = this@A
 context(List<String>, List<Int>) fun test() {
   val strs = given<List<String>>()
     val ints = given<List<Int>>()
     println(strs)
     println(ints)
 }givengivenJavier
07/30/2023, 7:54 PMYoussef Shoaib [MOD]
07/30/2023, 7:55 PM