Created
November 18, 2019 06:42
-
-
Save kyawhtut-cu/bf02d75205e5e485b59cf52419e2840d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kyawhtut.ankotest; | |
public class TrafficLightJavaTest { | |
public static void main(String[] args) { | |
TrafficLight trafficLight = new TrafficLight("red"); | |
boolean isDrive = TrafficLightExtensionKt.isDrive(trafficLight); // this is compile time error | |
boolean isDrive = TrafficLightUtils.isDrive(trafficLight); // this will work | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment