blob: e70d37c91c9252e8b4d0d6bacbbd51658ccb0050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/a">a</a></div>
<h1>a</h1>
<a name="$a()"></a>
<div class="signature"><code><span class="keyword">fun </span><span class="identifier">a</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">String</span></code></div>
<div class="sample"><pre><code class="lang-kotlin">import java.io.FileNotFoundException
import java.io.File
fun main(args: Array<String>) {
//sampleStart
println(a()) // Hello, Work
println("a() == b() is ${a() == b()}") // true
// readSomeFile(File("some.txt")) // reading file now will fail
// readSomeFile(File("some.txt")) // will fail with FileNotFoundException
//sampleEnd
}</code></pre></div>
|