CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 00:28:33 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=03cca8dabb38d679bd3d263278fc1f9c8af5f66df3d24f803f4c1e8096576753a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22nJtch42Nshc68F0fIhMyE0BICTU7fxMk%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d27a567a83b9d7-BLR
Kotlin typing is unsound - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open class Animal
- class Cat() : Animal() {
- fun myaw() {
- System.out.println("myaw!");
- }
- }
- class Dog() : Animal() {
- fun gav() {
- System.out.println("dog!");
- }
- }
- // Usage:
- // val list = mutableListOf<Int>()
- // list.addAnything("string")
- // val fail = list[0]
- private fun <E> List <E>.addAnything(element: E) {
- if (this is MutableList<E>) {
- this.add(element)
- }
- }
- fun main() {
- val cats = mutableListOf<Cat>(Cat(), Cat())
- val upcast: List<Cat> = cats
- val covariance: List<Animal> = upcast
- val animals: MutableList<Animal> = covariance as MutableList
- animals[0] = Dog()
- for (cat in cats) {
- cat.myaw()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 2 sec ago | 0.25 KB
-
📌 Instant BTC Profit Method ✅ Working
JavaScript | 7 sec ago | 0.24 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 8 sec ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ E
JavaScript | 10 sec ago | 0.25 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 16 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 19 sec ago | 0.25 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 20 sec ago | 0.10 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 26 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand