// Copyright (c) 2023, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

package com.android.tools.r8.kotlin.metadata.context_receiver_lib

interface Foo {
  fun m1(): String
}

interface Bar {
  fun m2(): String
}

interface Baz {
  fun m3(): String
}

context(Foo, Bar)
class Printer {

  fun fooBar() {
    m1();
    m2();
  }

  context(Baz)
  val getValue: String
    get() = if (System.currentTimeMillis() == 0L) "foo" else m3()
}

context(Foo, Bar)
fun callFooBar() : String {
  return m1() + m2();
}