Phase 1 work
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
package dev.ulfrx.recipe
|
||||
|
||||
const val SERVER_PORT = 8080
|
||||
public const val SERVER_PORT: Int = 8080
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
package dev.ulfrx.recipe
|
||||
|
||||
class Greeting {
|
||||
public class Greeting {
|
||||
private val platform = getPlatform()
|
||||
|
||||
fun greet(): String {
|
||||
return "Hello, ${platform.name}!"
|
||||
}
|
||||
}
|
||||
public fun greet(): String = "Hello, ${platform.name}!"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package dev.ulfrx.recipe
|
||||
|
||||
interface Platform {
|
||||
val name: String
|
||||
public interface Platform {
|
||||
public val name: String
|
||||
}
|
||||
|
||||
expect fun getPlatform(): Platform
|
||||
public expect fun getPlatform(): Platform
|
||||
|
||||
Reference in New Issue
Block a user