title: kotlin const val Const 'val' are only allowed on top level or in objects
body: <p>In my Kotlin project I want to declare constant on compile time:</p>
  
  <p>So I use this:</p>
  
  <pre><code>@RunWith(AndroidJUnit4::class)
  class TradersActivityTest {
  
      private lateinit var mockServer: MockWebServer
      private const val ONE_TR = "no_wallets.json" // error here
  </code></pre>
  
  <p>But I has compile time error:</p>
  
  <pre><code>Const 'val' are only allowed on top level or in objects
  </code></pre>
  
  <p>How declare compile time constant?</p>