• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<div class='api-docs-breadcrumbs'><a href="index.html">test</a> / <a href="./a.html">a</a></div>
2<h1>a</h1>
3<a name="$a()"></a>
4<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>
5<div class="sample"><pre><code class="lang-kotlin">import java.io.FileNotFoundException
6import java.io.File
7
8fun main(args: Array&lt;String&gt;) {
9//sampleStart
10println(a()) // Hello, Work
11println("a() == b() is ${a() == b()}") // true
12// A eq B
13println("a() == b() is ${a() == b()}") // true
14// readSomeFile(File("some.txt")) // reading file now will fail
15// readSomeFile(File("some.txt")) // will fail with FileNotFoundException
16
17fun indented() {
18    // A neq B
19    println("a() != b() is ${a() != b()}") // false
20}
21//sampleEnd
22}</code></pre></div>
23