mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 10:41:59 +03:00
26 lines
355 B
Idris
26 lines
355 B
Idris
|
|
||
|
leaveAlone : String -> String
|
||
|
leaveAlone x = x ++ "!"
|
||
|
|
||
|
%inline
|
||
|
forceInline : Nat -> Nat
|
||
|
forceInline y = y + 10
|
||
|
|
||
|
%noinline
|
||
|
public export
|
||
|
forceNoInline : Nat
|
||
|
forceNoInline = 10
|
||
|
|
||
|
public export
|
||
|
heuristicPublicInline : Nat
|
||
|
heuristicPublicInline = 2
|
||
|
|
||
|
%inline
|
||
|
export
|
||
|
exportedForced : Nat
|
||
|
exportedForced = 33
|
||
|
|
||
|
export
|
||
|
exportedUnforced : Nat
|
||
|
exportedUnforced = 66
|